Skip to content

Commit

Permalink
fix(k8s): add securityContext (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Sep 8, 2023
1 parent d962fb7 commit f7d3825
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
app:
securityContext:
fsGroup: 101
runAsGroup: 101
runAsUser: 101
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ COPY ./yarn.lock .

RUN yarn --frozen-lockfile --ignore-engines


COPY . .

ENV NEXT_PUBLIC_MATOMO_SITE_ID="34"
Expand All @@ -20,6 +19,6 @@ ENV NODE_ENV=production

RUN yarn --ignore-engines build-static

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

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

0 comments on commit f7d3825

Please sign in to comment.