This commit is contained in:
parent
49273340e3
commit
949798a17f
@ -28,12 +28,15 @@ FROM alpine:latest
|
||||
RUN apk update && apk upgrade
|
||||
RUN apk add pcre pcre-dev
|
||||
|
||||
|
||||
RUN mkdir /usr/local/nginx
|
||||
RUN mkdir /var/log/nginx
|
||||
|
||||
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
|
||||
|
||||
RUN chmod -R 770 /usr/local/nginx
|
||||
RUN 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
|
||||
|
Loading…
Reference in New Issue
Block a user