1 Star 0 Fork 0

DJ / bfe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 387 Bytes
一键复制 编辑 原始数据 按行查看 历史
iyangsj 提交于 2021-04-16 19:06 . Update Dockerfile
FROM golang:1.13.11-alpine AS build
WORKDIR /bfe
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=`cat VERSION`"
FROM alpine:3.10 AS run
RUN apk update && apk add --no-cache ca-certificates
COPY --from=build /bfe/bfe /bfe/bin/
COPY conf /bfe/conf/
EXPOSE 8080 8443 8421
WORKDIR /bfe/bin
ENTRYPOINT ["./bfe"]
CMD ["-c", "../conf/", "-l", "../log"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dang050/bfe.git
git@gitee.com:dang050/bfe.git
dang050
bfe
bfe
develop

搜索帮助

344bd9b3 5694891 D2dac590 5694891