加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 693 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨磊 提交于 2023-05-16 18:35 . doc: 修改为新的仓库地址
FROM golang:1.19-alpine3.16 as go-builder
WORKDIR /ithings/
COPY ./go.mod ./go.mod
RUN go mod download
COPY ./ ./
RUN cd ./src/apisvr && go mod tidy && go build .
FROM node:19 as web-builder
WORKDIR /ithings/
COPY ./assets/package.json ./assets/package.json
RUN cd assets && yarn install --no-lockfile
COPY ./assets ./assets
RUN cd assets && yarn build
FROM alpine:3.16
LABEL homepage="https://github.com/i-Things/iThings"
ENV TZ Asia/Shanghai
RUN apk add tzdata
WORKDIR /ithings/
COPY --from=go-builder /ithings/src/apisvr/apisvr ./apisvr
COPY --from=go-builder /ithings/src/apisvr/etc/ ./etc
COPY --from=web-builder /ithings/assets/dist/ ./dist/front/iThingsCore
ENTRYPOINT ["./apisvr"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化