mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-07 18:39:47 +08:00
Signed-off-by: Logaxn <logaxn@foxmail.com>
This commit is contained in:
parent
8c86d61235
commit
f97911c723
22
Dockerfile
Normal file
22
Dockerfile
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user