Files
mdmdms_fs_prod/mdmds/Dockerfile
2025-12-19 14:26:09 +08:00

14 lines
279 B
Docker

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