fix: set NODE_ENV after build so devDeps install for build

This commit is contained in:
2026-05-14 13:52:38 +00:00
parent d2f985af28
commit e8c7185bf7

View File

@@ -1,10 +1,10 @@
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=4028
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
ENV NODE_ENV=production
ENV PORT=4028
EXPOSE 4028
CMD ["npx", "next", "start", "-p", "4028"]