1 Star 0 Fork 0

yuluodejijie / chisel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 453 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jaime Pillora 提交于 2020-04-07 09:07 . dockerfile: no mod vendor
# build stage
FROM golang:alpine AS build-env
LABEL maintainer="dev@jpillora.com"
RUN apk update
RUN apk add git
ENV CGO_ENABLED 0
ADD . /src
WORKDIR /src
RUN go build \
-ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(git describe --abbrev=0 --tags)" \
-o chisel
# container stage
FROM alpine
RUN apk update && apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=build-env /src/chisel /app/chisel
ENTRYPOINT ["/app/chisel"]
1
https://gitee.com/yuluodejijie/chisel.git
git@gitee.com:yuluodejijie/chisel.git
yuluodejijie
chisel
chisel
master

搜索帮助