Update Dockerfile

This commit is contained in:
伍春全 2023-08-07 07:52:03 +00:00
parent 9da966d85a
commit 6db9fa3660
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM node:16 FROM node:latest
COPY ./ /app COPY ./ /app
WORKDIR /app WORKDIR /app
RUN npm config set registry http://registry.npm.taobao.org RUN npm config set registry http://registry.npm.taobao.org
@ -7,4 +7,4 @@ RUN npm install && npm run build
FROM nginx FROM nginx
RUN mkdir /app RUN mkdir /app
COPY --from=0 /app/dist /app COPY --from=0 /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf