Skip to content

Commit c56d1aa

Browse files
committed
remove includes from base
1 parent d15524c commit c56d1aa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ RUN export APP_VERSION=$(grep version package.json | awk -F: '{ print $2 }' | se
3333
# STAGE 2: Production Runtime
3434
# ============================================================
3535
FROM container-registry.platta-net.hel.fi/devops-toolchain/nginx-spa-standard:1.0 AS production
36-
36+
USER root
37+
RUN rm -rf /etc/nginx/includes/*
3738
# 1. Copy the compiled assets
3839
COPY --from=staticbuilder /app/build /usr/share/nginx/html
3940

@@ -46,7 +47,7 @@ WORKDIR /usr/share/nginx/html
4647
COPY ./scripts/env.sh .
4748
COPY .env .
4849
COPY package.json .
49-
50+
USER 1001
5051
# - USER (Inherited 1001 from base image)
5152
# - EXPOSE (Inherited 8080 from base image)
5253
# - ENTRYPOINT/CMD (Inherited from base image)

0 commit comments

Comments
 (0)