This commit is contained in:
parent
b3ec1a4727
commit
f7fd878df8
@ -26,6 +26,10 @@ RUN cd nginx-* && ./configure --prefix=/usr/local/nginx \
|
||||
# Stage 2: Create a minimal runtime image
|
||||
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 --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