Skip to content

Commit

Permalink
fix(secu): securityContect (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Aug 30, 2023
1 parent ec0d570 commit f026e8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ app:
~chart: app # implicit
~needs: [build-app]
containerPort: 8080
imagePackage: app # implicit
securityContext:
fsGroup: 101
runAsGroup: 101
runAsNonRoot: true
runAsUser: 101
ingress:
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RUN yarn --production --frozen-lockfile --prefer-offline && yarn cache clean
RUN yarn build
RUN yarn export

FROM ghcr.io/socialgouv/docker/nginx:8.0.2
FROM ghcr.io/socialgouv/docker/nginx:8.2.0

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

0 comments on commit f026e8e

Please sign in to comment.