diff --git a/Dockerfile b/Dockerfile index 916a25a..5c59e1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,8 @@ RUN ./scripts/release.sh # Production run FROM nginx:stable-alpine +RUN rm /var/log/nginx/access.log + COPY nginx.conf /etc/nginx/nginx.conf COPY --from=build /app/public/ /usr/share/nginx/html diff --git a/nginx.conf b/nginx.conf index e76ddc2..f799802 100644 --- a/nginx.conf +++ b/nginx.conf @@ -15,6 +15,7 @@ http { default_type application/octet-stream; access_log /dev/stdout; + access_log /var/log/nginx/access.log; sendfile on;