Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
fix(secu): use non-root container (#254)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update config.json
  • Loading branch information
Julien Bouquillon authored Jan 4, 2022
1 parent a35184d commit 1f04a50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .socialgouv/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"subdomain": "archifiltre",
"project": "archifiltre",
"registry": "ghcr",
"containerPort": 3000,
"ingress": {
"annotations": {}
}
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ RUN apk add automake autoconf libtool dpkg pkgconfig nasm libpng libpng-dev g++
RUN yarn --frozen-lockfile --prefer-offline && yarn cache clean
RUN yarn build

FROM ghcr.io/socialgouv/docker/nginx:6.53.2
FROM ghcr.io/socialgouv/docker/nginx:6.65.0

COPY --from=builder ./public /usr/share/nginx/html
USER 101

ENV PORT=3000

COPY --from=builder --chown=nginx:nginx ./public /usr/share/nginx/html

0 comments on commit 1f04a50

Please sign in to comment.