Skip to content

Commit

Permalink
Update Dockerfile with data chown
Browse files Browse the repository at this point in the history
  • Loading branch information
excalith committed Jan 4, 2024
1 parent 73ca27d commit 53c5d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ ENV NEXT_TELEMETRY_DISABLED 1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/public ./public

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/public/data ./public/data

USER nextjs

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
start-page:
container_name: start-page
container_name: excalith-start-page
image: excalith/start-page
restart: unless-stopped
ports:
Expand Down

0 comments on commit 53c5d80

Please sign in to comment.