web/Dockerfile.x

19 lines
463 B
Docker
Raw Normal View History

2024-05-24 16:39:21 +03:30
FROM node:20-alpine3.18 AS runner
WORKDIR /app
ARG NODE_ENV=production
COPY public ./public
COPY .next ./.next
COPY node_modules ./node_modules
COPY package.json ./package.json
COPY .env.production ./.env.production
COPY next.config.js ./next.config.js
EXPOSE 3000
ENV PORT 3000
CMD ["node_modules/.bin/next", "start"]
2024-08-01 01:20:03 +03:30
# docker build -f Dockerfile.x -t registry.vnfco.ir/netinashop/vesmeh:1.0.4.6 .
2024-08-23 12:46:00 +03:30
# docker push registry.vnfco.ir/netinashop/vesmeh:1.0.4.6~