修复环境变量问题

This commit is contained in:
2026-04-14 11:34:28 +08:00
parent 9a8a1826c9
commit 319baea5e8
8 changed files with 60 additions and 8 deletions

View File

@@ -32,6 +32,7 @@ RUN 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
RUN rm .env
USER nextjs