1 Star 0 Fork 252

杨承博 / gokins

forked from Gokins / Gokins 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
ryanmao 提交于 2020-10-15 19:59 . add Dockerfile
## 感谢 lockp111 提供的Dockerfile
FROM golang:1.15.2-alpine AS builder
RUN apk add git gcc libc-dev && git clone https://github.com/mgr9525/gokins.git /build
WORKDIR /build
RUN GOOS=linux GOARCH=amd64 go build -o bin/gokins main.go
FROM alpine:latest AS final
RUN apk update \
&& apk upgrade \
&& apk --no-cache add openssl \
&& apk --no-cache add ca-certificates \
&& rm -rf /var/cache/apk \
&& mkdir -p /app
COPY --from=builder /build/bin/gokins /app
WORKDIR /app
ENTRYPOINT ["/app/gokins"]
Go
1
https://gitee.com/Chboy/gokins.git
git@gitee.com:Chboy/gokins.git
Chboy
gokins
gokins
master

搜索帮助