This commit is contained in:
parent
29ba4a5927
commit
49273340e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user