初始化更新
This commit is contained in:
9
docker_env/web/Dockerfile
Normal file
9
docker_env/web/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM registry.cn-zhangjiakou.aliyuncs.com/dvadmin-pro/node14-base-web:latest
|
||||
WORKDIR /web/
|
||||
COPY web/. .
|
||||
RUN npm install --registry=https://registry.npm.taobao.org
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY ./docker_env/nginx/my.conf /etc/nginx/conf.d/my.conf
|
||||
COPY --from=0 /web/dist /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user