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
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Feb 24, 2022
1 parent c556c9d commit b557798
Showing 1 changed file with 8 additions and 2 deletions.
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 b557798

Please sign in to comment.