From 1c587b666aa9743d1b6c429e2ccb3e950b7c4c07 Mon Sep 17 00:00:00 2001 From: cde-barros Date: Tue, 13 Feb 2024 16:05:43 +0100 Subject: [PATCH] =?UTF-8?q?passage=20=C3=A0=20nginx=20unprivileged-alpine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.prod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index 026cc095..3a4f50c0 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -19,13 +19,13 @@ COPY conf /etc/nginx # Static build COPY --from=builder /app/build /usr/share/nginx/html/ -EXPOSE 80 - # Copy .env file and shell script to container WORKDIR /usr/share/nginx/html COPY ./env.sh . COPY .env . +USER root + # Add bash RUN apk add --no-cache bash