From 49273340e315e18db90b9cc5cdee12ec2b14c6b5 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 26 Oct 2023 12:17:26 +0100 Subject: [PATCH] 7 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index d8f0ed0..032c7dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,9 +28,13 @@ FROM alpine:latest RUN apk update && apk upgrade RUN apk add pcre pcre-dev +RUN touch /usr/local/nginx/logs/error.log +RUN touch /usr/local/nginx/logs/access.log + RUN mkdir /usr/local/nginx && chmod -R 770 /usr/local/nginx RUN mkdir /var/log/nginx && chmod -R 770 /var/log/nginx + # Copy Nginx binary and configuration from the build stage COPY --from=build /usr/local/sbin/nginx /usr/local/sbin/nginx COPY --from=build /etc/nginx /etc/nginx