19 lines
511 B
Docker
19 lines
511 B
Docker
FROM node:16
|
|
|
|
WORKDIR /gva_web/
|
|
COPY . .
|
|
RUN npm config set registry https://registry.npm.taobao.org
|
|
RUN npm install -g yarn@latest
|
|
RUN yarn config set registry https://registry.npm.taobao.org
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
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
|