Skip to content

Commit c53fbac

Browse files
committed
storefront nginx sec tweaks
1 parent 4f6882b commit c53fbac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/storefront/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ RUN npm run build
4848
FROM --platform=${TARGETPLATFORM:-linux/amd64} nginxinc/nginx-unprivileged:1.20-alpine
4949

5050
USER root
51-
RUN chown -R nginx:nginx /usr/share/nginx
52-
USER nginx
51+
RUN chown -R 101:101 /usr/share/nginx
52+
USER 101
5353
COPY nginx/nginx.conf /etc/nginx/nginx.conf
54-
COPY --chmod=666 nginx/default.conf /etc/nginx/conf.d/default.conf
54+
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
5555
COPY --chmod=555 nginx/15-storefront-extras.sh /docker-entrypoint.d/15-storefront-extras.sh
56-
COPY --chown=nginx:nginx --from=builder /usr/src/app/build /usr/share/nginx/html
56+
COPY --chown=101:101 --from=builder /usr/src/app/build /usr/share/nginx/html
5757

5858

5959
EXPOSE 8080

0 commit comments

Comments
 (0)