Files
hossein-por-shop/frontend/dockerfile
T
2025-03-08 20:32:00 +03:30

14 lines
273 B
Docker

FROM node:20-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install --force
COPY . .
RUN npm run build
FROM node:20-alpine as production-stage
WORKDIR /app
COPY --from=build-stage /app /app
EXPOSE 3000
ENV NODE_ENV=production
CMD ["npm", "run", "start"]