1- FROM php:7.2 -fpm-alpine
1+ FROM php:7.4 -fpm-alpine
22
33WORKDIR /app
44
5- RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar unzip; \
5+ RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar unzip nginx libpng-dev libxml2-dev libzip-dev certbot ; \
66 docker-php-ext-install bcmath; \
7- apk add --no-cache libpng-dev; \
87 docker-php-ext-install gd; \
98 docker-php-ext-install mbstring; \
109 docker-php-ext-install pdo; \
1110 docker-php-ext-install pdo_mysql; \
1211 docker-php-ext-install tokenizer; \
13- apk add --no-cache libxml2-dev; \
1412 docker-php-ext-install xml; \
13+ docker-php-ext-configure zip --with-libzip=/usr/include; \
1514 docker-php-ext-install zip; \
1615 curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1716
@@ -23,7 +22,8 @@ RUN cp .env.example .env \
2322 && chown -R nginx:nginx . && chmod -R 777 storage/* bootstrap/cache
2423
2524RUN cp .dev/docker/default.conf /etc/nginx/conf.d/default.conf \
26- && cp .dev/docker/www.conf /etc/php7/php-fpm.d/www.conf \
25+ && cat .dev/docker/www.conf > /usr/local/etc/php-fpm.d/www.conf \
26+ && rm /usr/local/etc/php-fpm.d/www.conf.default \
2727 && cat .dev/docker/supervisord.conf > /etc/supervisord.conf \
2828 && echo "* * * * * /usr/bin/php /app/artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root \
2929 && sed -i s/ssl_session_cache/#ssl_session_cache/g /etc/nginx/nginx.conf \
@@ -33,4 +33,4 @@ EXPOSE 80 443
3333
3434ENTRYPOINT ["/bin/ash" , ".dev/docker/entrypoint.sh" ]
3535
36- CMD [ "supervisord" , "-n" , "-c" , "/etc/supervisord.conf" ]
36+ CMD [ "supervisord" , "-n" , "-c" , "/etc/supervisord.conf" ]
0 commit comments