Files
mdmdms_fs_prod/Dockerfile

12 lines
265 B
Docker
Raw Permalink Normal View History

2025-12-19 14:26:09 +08:00
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm run build
# production stage
FROM nginx as production-stage
COPY --from=build-stage /app /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]