optimize Dockerfile

This commit is contained in:
2026-02-19 04:13:16 +01:00
parent 24c68d611a
commit 823896bccb
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -24,10 +24,8 @@ RUN addgroup -g 1001 nodejs \
&& adduser -u 1001 -G nodejs -s /bin/sh -D nextjs && adduser -u 1001 -G nodejs -s /bin/sh -D nextjs
# Copy only what is needed for runtime # Copy only what is needed for runtime
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
USER nextjs USER nextjs
+1 -1
View File
@@ -1,7 +1,7 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ output: "standalone"
}; };
export default nextConfig; export default nextConfig;