You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
525 B
20 lines
525 B
FROM node:12.16.1
|
|
|
|
WORKDIR /gva_web/
|
|
COPY web/ .
|
|
|
|
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
|
|
RUN cnpm install || npm install
|
|
RUN npm run 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
|
|
CMD ls -al /usr/share/nginx/html
|
|
|
|
CMD ['nginx-debug', '-g', 'daemon off;']
|