Skip to content

Commit f69c22e

Browse files
committed
fix: correct ENTRYPOINT typo and update Dockerfile comments
1 parent 56da3f4 commit f69c22e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎client-nachweise/Dockerfile‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ ENV NODE_ENV=production
2121
RUN apk add --no-cache dumb-init
2222
RUN 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
2525
COPY --from=builder /app/public ./public
2626
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
2727
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
2828

2929
USER nextjs
3030
EXPOSE 3000
3131
ENV 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", "--"]
3635
CMD ["node", "server.js"]

‎client-nachweise/next.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5+
output: 'standalone',
56

67
images: {
78
remotePatterns: [

0 commit comments

Comments
 (0)