Signed-off-by: Logaxn <logaxn@foxmail.com>

This commit is contained in:
Logaxn 2019-03-13 01:22:53 +08:00
parent f97911c723
commit 22b28e1755
1 changed files with 9 additions and 0 deletions

View File

@ -15,8 +15,17 @@ RUN yarn run build:prod
# https://docs.docker.com/develop/develop-images/multistage-build/
FROM busybox FROM busybox
COPY --from=0 /app/dist /app_dist COPY --from=0 /app/dist /app_dist
# git push aliyun master:master
# docker login --username=logig registry.cn-shenzhen.aliyuncs.com
# docker pull registry.cn-shenzhen.aliyuncs.com/logaxn/zealouscrm-vue
# 将镜像里的 /app_dist 目录拷出来
# docker run --rm -v $HOME/dist:/dist registry.cn-shenzhen.aliyuncs.com/logaxn/zealouscrm-vue cp -r -T /app_dist /dist