We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d15524c commit c56d1aaCopy full SHA for c56d1aa
1 file changed
Dockerfile
@@ -33,7 +33,8 @@ RUN export APP_VERSION=$(grep version package.json | awk -F: '{ print $2 }' | se
33
# STAGE 2: Production Runtime
34
# ============================================================
35
FROM container-registry.platta-net.hel.fi/devops-toolchain/nginx-spa-standard:1.0 AS production
36
-
+USER root
37
+RUN rm -rf /etc/nginx/includes/*
38
# 1. Copy the compiled assets
39
COPY --from=staticbuilder /app/build /usr/share/nginx/html
40
@@ -46,7 +47,7 @@ WORKDIR /usr/share/nginx/html
46
47
COPY ./scripts/env.sh .
48
COPY .env .
49
COPY package.json .
50
+USER 1001
51
# - USER (Inherited 1001 from base image)
52
# - EXPOSE (Inherited 8080 from base image)
53
# - ENTRYPOINT/CMD (Inherited from base image)
0 commit comments