diff --git a/Dockerfile b/Dockerfile index 194060d..423a964 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,9 +36,10 @@ RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs # Copy all files from builder -COPY --from=builder --chown=nextjs:nodejs /app ./ +COPY --from=builder /app ./ -USER nextjs +# Don't switch to nextjs user for dev mode - needs write permissions +# USER nextjs EXPOSE 3000