File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,16 +21,15 @@ ENV NODE_ENV=production
2121RUN apk add --no-cache dumb-init
2222RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001
2323
24- # NUR notwendige Standalone-Dateien kopieren (viel kleiner!)
24+ # Copy built application from builder
2525COPY --from=builder /app/public ./public
2626COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
2727COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
2828
2929USER nextjs
3030EXPOSE 3000
3131ENV PORT=3000
32+ ENV HOSTNAME="0.0.0.0"
3233
33- ENTRYPOINT ["dumb-init" , "--" ]
34-
35- # Im Standalone-Modus nutzt man den generierten server.js
34+ ENTRYPOINE ["dumb-init" , "--" ]
3635CMD ["node" , "server.js" ]
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { NextConfig } from 'next';
22
33const nextConfig : NextConfig = {
44 /* config options here */
5+ output : 'standalone' ,
56
67 images : {
78 remotePatterns : [
You can’t perform that action at this time.
0 commit comments