- Replace fabricated 12-year/500+/8+ team experience claims with 2026 founding, first-client co-creation, professional team wording - Remove fake case studies and unverified certifications from seeds, cases page, products and ERP upgrade page - Enable Next.js standalone output and production hybrid deployment (Dockerfile.prod, docker-compose.server.yml, Nginx nextjs upstream) - Add linux-musl Prisma engine target and production crypto key build - Sync production CMS database with cleaned seed content
26 lines
568 B
Docker
26 lines
568 B
Docker
FROM node:20-alpine AS runner
|
||
WORKDIR /app
|
||
|
||
ENV NODE_ENV=production
|
||
ENV NEXT_TELEMETRY_DISABLED=1
|
||
ENV PORT=3000
|
||
ENV HOSTNAME="0.0.0.0"
|
||
|
||
RUN addgroup --system --gid 1001 nodejs && \
|
||
adduser --system --uid 1001 nextjs
|
||
|
||
# Next.js 16 standalone 输出:server.js 位于 dist/standalone 根目录
|
||
COPY dist/standalone ./
|
||
# 客户端静态资源(/_next/static)
|
||
COPY dist/static ./dist/static
|
||
# 公共静态资源(图片、字体、favicon、uploads 等)
|
||
COPY public ./public
|
||
|
||
RUN chown -R nextjs:nodejs /app
|
||
|
||
USER nextjs
|
||
|
||
EXPOSE 3000
|
||
|
||
CMD ["node", "server.js"]
|