7
Some checks failed
Publish Docker Image / docker (push) Failing after 21s

This commit is contained in:
Lee 2023-10-26 12:17:26 +01:00
parent 29ba4a5927
commit 49273340e3

@ -28,9 +28,13 @@ FROM alpine:latest
RUN apk update && apk upgrade RUN apk update && apk upgrade
RUN apk add pcre pcre-dev 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 /usr/local/nginx && chmod -R 770 /usr/local/nginx
RUN mkdir /var/log/nginx && chmod -R 770 /var/log/nginx RUN mkdir /var/log/nginx && chmod -R 770 /var/log/nginx
# Copy Nginx binary and configuration from the build stage # Copy Nginx binary and configuration from the build stage
COPY --from=build /usr/local/sbin/nginx /usr/local/sbin/nginx COPY --from=build /usr/local/sbin/nginx /usr/local/sbin/nginx
COPY --from=build /etc/nginx /etc/nginx COPY --from=build /etc/nginx /etc/nginx