60 Star 429 Fork 120

GVPGokins / gokins

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Dockerfile 525 Bytes
Copy Edit Web IDE Raw Blame History
ryanmao authored 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"]

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/gokins/gokins.git
git@gitee.com:gokins/gokins.git
gokins
gokins
gokins
master

Search