diff --git a/Dockerfile b/Dockerfile index c528a3ec51..5b315bb111 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,14 +92,14 @@ RUN apk add --no-cache \ RUN addgroup -g 1001 -S nodejs \ && adduser -S nextjs -u 1001 -COPY --from=builder --chown=nextjs:nodejs app/packages/app/.next/standalone app/.next/standalone -COPY --from=builder --chown=nextjs:nodejs app/packages/app/.next/static app/.next/standalone/packages/app/.next/static -COPY --from=builder app/packages/app/next.config.js app/.next/standalone/packages/app +COPY --from=builder --chown=nextjs:nodejs /app/packages/app/.next/standalone /app/.next/standalone +COPY --from=builder --chown=nextjs:nodejs /app/packages/app/.next/static /app/.next/standalone/packages/app/.next/static +COPY --from=builder /app/packages/app/next.config.js /app/.next/standalone/packages/app -RUN mkdir -p app/.next/standalone/packages/app/public/images/choropleth -RUN chown -R nextjs:nodejs app/.next/standalone/packages/app/public/images/choropleth +RUN mkdir -p /app/.next/standalone/packages/app/public/images/choropleth +RUN chown -R nextjs:nodejs /app/.next/standalone/packages/app/public/images/choropleth -WORKDIR app/.next/standalone/packages/app +WORKDIR /app/.next/standalone/packages/app USER nextjs