lilishop-ui/manager/Dockerfile

14 lines
319 B
Docker
Raw Normal View History

2022-06-16 09:21:14 +08:00
FROM node:10.19.0 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
2021-05-13 10:56:04 +08:00
2022-06-16 09:21:14 +08:00
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
2021-05-13 10:56:04 +08:00
COPY ./nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
2022-06-16 09:21:14 +08:00
CMD ["nginx", "-g", "daemon off;"]k