1 Star 0 Fork 251

edison/gokins

forked from Gokins/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"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/edison2018_admin/gokins.git
git@gitee.com:edison2018_admin/gokins.git
edison2018_admin
gokins
gokins
master

搜索帮助