1 Star 0 Fork 1

tim/learnGitBranching

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 428 Bytes
一键复制 编辑 原始数据 按行查看 历史
Brandon McClure 提交于 2022-08-14 14:45 . docker image to build/deploy app
FROM node:14.20.0-alpine3.16 as build
RUN apk add git --no-cache
WORKDIR "/src"
COPY . /src
RUN yarn install && \
yarn cache clean
RUN yarn gulp build
FROM scratch AS export
WORKDIR /
COPY --from=build /src/index.html .
COPY --from=build /src/build ./build
FROM nginx:stable-alpine
WORKDIR /usr/share/nginx/html/
COPY . .
# Override the local source with the built artifacts
COPY --from=export . .
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/otim/learnGitBranching.git
git@gitee.com:otim/learnGitBranching.git
otim
learnGitBranching
learnGitBranching
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385