fix(docker): adapt Dockerfile.prod for Next.js 16 standalone output structure
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
- Fix standalone path: dist/standalone/novalon-website/ - Update static files path: dist/static - Replace curl with wget in health checks (Alpine compatibility) - Add monitoring and optimization scripts - Configure external network for docker-compose This resolves the deployment failure caused by Next.js 16's new standalone output structure.
This commit is contained in:
+2
-4
@@ -7,12 +7,10 @@ ENV PORT=3000
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs && \
|
||||
adduser --system --uid 1001 nextjs && \
|
||||
apk add --no-cache curl
|
||||
adduser --system --uid 1001 nextjs
|
||||
|
||||
COPY dist/standalone/novalon-website/ ./
|
||||
COPY dist/static/ ./.next/static/
|
||||
COPY public ./public
|
||||
COPY dist/static ./dist/static
|
||||
|
||||
RUN chown -R nextjs:nodejs /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user