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.
16 lines
459 B
16 lines
459 B
FROM node:12.16.1 as builder
|
|
WORKDIR /web/
|
|
COPY ./package.json package.json
|
|
COPY ./yarn.lock yarn.lock
|
|
RUN yarn config set registry http://registry.npm.taobao.org/
|
|
RUN yarn
|
|
COPY ./ .
|
|
RUN yarn build
|
|
|
|
FROM nginx:alpine
|
|
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/my.conf
|
|
COPY --from=builder /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
|