From f7fd878df818f18de03511a2a8bef0bc54fa8634 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 26 Oct 2023 12:10:13 +0100 Subject: [PATCH] stuffings --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6c2587c..889e6ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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