From 6cb682d807475c2d3543c82d0398f98a9529f2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Tue, 11 Jan 2022 14:22:20 +0100 Subject: [PATCH] public and alpine --- backend/config/services.yaml | 2 +- docker/Dockerfile.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/config/services.yaml b/backend/config/services.yaml index e8ffa1f..effa412 100644 --- a/backend/config/services.yaml +++ b/backend/config/services.yaml @@ -27,7 +27,7 @@ services: Redis: # you can also use \RedisArray, \RedisCluster or \Predis\Client classes class: \Redis - + public: true calls: - connect: - '%env(REDIS_HOST)%' diff --git a/docker/Dockerfile.php b/docker/Dockerfile.php index 2f4b0dd..f46c8be 100644 --- a/docker/Dockerfile.php +++ b/docker/Dockerfile.php @@ -1,6 +1,6 @@ -FROM php:8.1-fpm-buster +FROM php:8.1-fpm-alpine -RUN apt update && apt install -y curl git +RUN apk add --no-cache curl git # https://github.com/mlocati/docker-php-extension-installer # https://github.com/mlocati/docker-php-extension-installer#special-requirements @@ -10,9 +10,7 @@ RUN curl -sSLf -o /usr/local/bin/install-php-extensions \ RUN install-php-extensions opcache redis timezonedb -RUN apt clean autoclean && \ - apt autoremove -y && \ - rm -rf /var/lib/apt/lists/* +RUN rm -rf /var/cache/apk/* RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" COPY docker/zz-custom-php.ini "$PHP_INI_DIR/conf.d/"