From 53c5d8054b48d66a54431b050a2403e3972b5344 Mon Sep 17 00:00:00 2001 From: Can Cellek Date: Thu, 4 Jan 2024 15:34:02 +0300 Subject: [PATCH] Update Dockerfile with data chown --- Dockerfile | 3 +-- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82f97c0c..14bfeeff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index a9e19ab2..daa04535 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: