1 Star 0 Fork 2

dgiot开源社区 / StatusPage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
翠花 提交于 2020-11-25 18:09 . Update Dockerfile
FROM node:10-alpine AS BUILDER
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install && yarn cache clean
COPY . .
RUN yarn build
FROM node:10-alpine
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV NODE_ENV=production
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install && yarn cache clean
COPY --from=BUILDER /app/build ./build
COPY config ./config
RUN yarn install && yarn cache clean && ls config
# To ensure build success when .env is not exist.
COPY .env* ./
CMD ["node", "build/bootstrap"]
1
https://gitee.com/dgiiot/StatusPage.git
git@gitee.com:dgiiot/StatusPage.git
dgiiot
StatusPage
StatusPage
master

搜索帮助