2024-08-17 21:35:54 +08:00
|
|
|
FROM node:alpine
|
2020-09-10 19:15:44 +08:00
|
|
|
|
|
|
|
WORKDIR /gva_web/
|
2021-06-10 22:05:14 +08:00
|
|
|
COPY . .
|
2024-08-17 22:34:30 +08:00
|
|
|
RUN yarn config set registry https://registry.npm.taobao.org
|
|
|
|
RUN yarn && yarn build
|
2020-09-10 19:15:44 +08:00
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
|
|
|
|
|
|
|
|
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
|