diff --git a/Dockerfile b/Dockerfile index 49e2af6..e93681f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,9 +52,7 @@ RUN \ make install && \ sed -i -e 's/#access_log logs\/access.log main;/access_log \/dev\/stdout;/' -e 's/#error_log logs\/error.log notice;/error_log stderr notice;/' /etc/nginx/nginx.conf && \ addgroup -S nginx && \ - adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx && \ - apk del ${build_pkgs} && \ - rm -rf /var/cache/apk/* + adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx ARG PHP_VERSION="83" @@ -64,7 +62,9 @@ RUN apk --no-cache add php${PHP_VERSION} \ php${PHP_VERSION}-pecl-redis \ curl \ vim \ - git \ + git + +RUN apk del ${build_pkgs} && \ rm -rf /var/cache/apk/* COPY nginx.conf /etc/nginx/nginx.conf