109 Star 941 Fork 251

GVPGokins / Gokins

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 614 Bytes
一键复制 编辑 原始数据 按行查看 历史
UchihaRuis 提交于 2021-07-30 19:23 . v1.0.2
FROM golang:1.16.6-alpine3.14 AS builder
# ENV GOPROXY=https://goproxy.cn,direct
# RUN apk add git build-base && git clone https://gitee.com/gokins/gokins.git /build
RUN apk add git build-base && git clone https://github.com/gokins/gokins.git /build
WORKDIR /build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/gokins main.go
FROM alpine:latest AS final
ENV GOKINS_WORKPATH=/data/gokins
RUN apk --no-cache add openssl ca-certificates curl git wget \
&& rm -rf /var/cache/apk \
&& mkdir -p /app /data/gokins
COPY --from=builder /build/bin/gokins /app
WORKDIR /app
ENTRYPOINT ["/app/gokins"]
Go
1
https://gitee.com/gokins/gokins.git
git@gitee.com:gokins/gokins.git
gokins
gokins
Gokins
master

搜索帮助