diff --git a/.gitignore b/.gitignore index 8f322f0d8f4..45c1abce864 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ yarn-error.log* # local env files .env*.local +.env # vercel .vercel diff --git a/Dockerfile b/Dockerfile index 6e3ef8b4886..8a883a823c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,9 @@ ENV NEXT_TELEMETRY_DISABLED 1 RUN addgroup --system --gid 1001 nodejs &&\ adduser --system --uid 1001 nextjs -COPY --from=builder /app/public ./public +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 ./public USER nextjs