This commit is contained in:
2025-11-04 03:51:57 +05:00
parent fb2d6e012d
commit e3e81e2ff9
2 changed files with 4 additions and 16 deletions

View File

@@ -1,23 +1,13 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
RUN npm install -g serve
EXPOSE 3000
CMD ["npm", "start"]
CMD ["serve", "-s", "dist"]