1 Star 0 Fork 3

han_hy/Maesh

forked from Gitee 极速下载/Maesh 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tmpl.Dockerfile 890 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kevin Pollet 提交于 2020-09-16 18:12 . Rename to Traefik Mesh
FROM golang:1.15-alpine AS builder
# Package dependencies
RUN apk --no-cache --no-progress add \
bash \
gcc \
git \
make \
musl-dev \
mercurial \
curl \
tar \
ca-certificates \
tzdata \
&& update-ca-certificates \
&& rm -rf /var/cache/apk/*
WORKDIR /go/src/github.com/traefik/mesh
# Download goreleaser binary to bin folder in $GOPATH
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
ENV GO111MODULE on
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN GOARCH={{ .GoARCH }} GOARM={{ .GoARM }} make local-build
## IMAGE
FROM {{ .RuntimeImage }}
RUN addgroup -g 1000 -S app && \
adduser -u 1000 -S app -G app
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/github.com/traefik/mesh/dist/traefik-mesh /app/
ENTRYPOINT ["/app/traefik-mesh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/han_hy/Maesh.git
git@gitee.com:han_hy/Maesh.git
han_hy
Maesh
Maesh
master

搜索帮助