2 Star 2 Fork 0

wops/PrometheusAlert

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 693 Bytes
一键复制 编辑 原始数据 按行查看 历史
jikun.zhang 提交于 2020-12-15 19:39 +08:00 . 更新Dockerfile,降低镜像大小
FROM golang:1.14-alpine3.12 as builder
WORKDIR $GOPATH/src/github.com/feiyu563/PrometheusAlert
RUN apk update && apk upgrade && apk add --no-cache gcc g++ sqlite-libs
ENV GO111MODULE on
ENV GOPROXY https://goproxy.io
COPY . $GOPATH/src/github.com/feiyu563/PrometheusAlert
RUN go mod vendor && go build
# -----------------------------------------------------------------------------
FROM golang:1.14-alpine3.12
LABEL maintainer="jikun.zhang"
WORKDIR /app
COPY --from=builder /go/src/github.com/feiyu563/PrometheusAlert/PrometheusAlert .
COPY conf/app-example.conf conf/app.conf
COPY db db
COPY logs logs
COPY static static
COPY views views
ENTRYPOINT [ "/app/PrometheusAlert" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wops/PrometheusAlert.git
git@gitee.com:wops/PrometheusAlert.git
wops
PrometheusAlert
PrometheusAlert
master

搜索帮助