stuffings
All checks were successful
Publish Docker Image / docker (push) Successful in 1m12s

This commit is contained in:
Lee 2023-10-26 12:10:13 +01:00
parent b3ec1a4727
commit f7fd878df8

@ -26,6 +26,10 @@ RUN cd nginx-* && ./configure --prefix=/usr/local/nginx \
# Stage 2: Create a minimal runtime image # Stage 2: Create a minimal runtime image
FROM alpine:latest FROM alpine:latest
# Install runtime dependencies
RUN apk update && apk upgrade
RUN apk add pcre pcre-dev
# 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