Files
CICD/Dockerfile
SpecialX fc3e9a4220
All checks were successful
CI / build-and-test (push) Successful in 7m32s
CI / deploy (push) Successful in 1m1s
chore: remove debug steps and loyment workflow
2025-12-19 18:13:48 +08:00

21 lines
346 B
Docker

FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
# Copy standalone output
# The context is now the standalone folder itself
COPY --chown=nextjs:nodejs . .
USER nextjs
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
CMD ["node", "server.js"]