fix: add not-found.tsx, convert to next.config.mjs, add NODE_ENV=development to Dockerfile

This commit is contained in:
kevin-asprec
2026-04-14 10:41:42 +08:00
parent 8aaa1115ec
commit 0fe5061134
4 changed files with 18 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
FROM node:20-alpine AS builder
ARG CACHE_BUST=1
ENV NODE_ENV=development
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install
@@ -11,7 +13,7 @@ RUN apk add --no-cache dumb-init
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
ENV NODE_ENV=production HOSTNAME=0.0.0.0 PORT=3002
ENV NODE_ENV=production HOSTNAME=0.0.0.0
EXPOSE 3002
USER nextjs
ENTRYPOINT ["dumb-init", "--"]