1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-06 17:49:50 +08:00

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

This commit is contained in:
Logaxn 2019-03-12 22:55:36 +08:00
parent 8c86d61235
commit f97911c723

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM node:11.10.0-alpine
# 由于国内网络问题yarn run build:prod 失败
# 暂时通过阿里云容器镜像服务的海外机器构建功能解决
RUN apk add git
COPY . /app
WORKDIR /app
RUN yarn install
RUN yarn run build:prod
FROM busybox
COPY --from=0 /app/dist /app_dist