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

Commit

Permalink
fix(secu): rootless container fix #23
Browse files Browse the repository at this point in the history
fix(secu): rootless container
  • Loading branch information
devthejo authored Feb 24, 2022
2 parents c556c9d + 34f0134 commit 85e529b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .socialgouv/chart/values.project.yaml

This file was deleted.

10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ COPY . .
RUN yarn build:export

# Production image, copy all the files and run next
FROM ghcr.io/socialgouv/docker/nginx:6.64.2 AS runner
FROM ghcr.io/socialgouv/docker/nginx:6.70.1 AS runner

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

# Rootless container
USER 101
ENV PORT=3000

# Disable nextjs telemetry
ENV NEXT_TELEMETRY_DISABLED 1

0 comments on commit 85e529b

Please sign in to comment.