fe-drone-ci/Dockerfile

23 lines
297 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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