Created
February 24, 2018 09:59
-
-
Save wanghuida/652103b1c1911fb55ea1ae1665507e64 to your computer and use it in GitHub Desktop.
分阶段docker打包
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM daocloud.io/node:carbon as build-deps | |
WORKDIR /usr/web | |
COPY . ./ | |
RUN yarn config set registry https://registry.npm.taobao.org | |
RUN yarn install | |
RUN yarn build | |
FROM daocloud.io/nginx | |
WORKDIR /web | |
COPY --from=build-deps /usr/web/dist ./ | |
EXPOSE 7600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment