JM-admin/Dockerfile

16 lines
337 B
Docker
Raw Normal View History

2023-01-10 11:52:47 +08:00
FROM node:16
WORKDIR /gva_web/
COPY . .
RUN yarn && yarn build
FROM nginx:alpine
2023-04-23 14:56:03 +08:00
LABEL MAINTAINER="1711788888@qq.com"
2023-01-10 11:52:47 +08:00
COPY .docker-compose/nginx/conf.d/my.conf /etc/nginx/conf.d/my.conf
COPY --from=0 /gva_web/dist /usr/share/nginx/html
RUN cat /etc/nginx/nginx.conf
RUN cat /etc/nginx/conf.d/my.conf
RUN ls -al /usr/share/nginx/html