2021-11-16 09:59:27 +08:00
|
|
|
FROM node:10
|
|
|
|
COPY ./ /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm config set registry http://registry.npm.taobao.org
|
|
|
|
RUN npm install && npm run build
|
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
RUN mkdir /app
|
2021-11-16 10:40:16 +08:00
|
|
|
COPY --from=0 /app/build /app
|
2021-11-16 09:59:27 +08:00
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|