mirror of
https://github.com/maxkratz/dockerfiles.git
synced 2024-09-16 11:28:36 +00:00
add golinks
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
parent
0aafb7c4d4
commit
90e2ca1d48
1 changed files with 22 additions and 0 deletions
22
golinks/Dockerfile
Normal file
22
golinks/Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
FROM golang:alpine as builder
|
||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||
|
||||
RUN apk --no-cache add \
|
||||
ca-certificates \
|
||||
git
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
|
||||
RUN go get github.com/kellegous/go || true \
|
||||
&& cd /go/src/github.com/kellegous/go \
|
||||
&& go build ./cmd/go \
|
||||
&& mv go /usr/bin/go
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder /usr/bin/go /usr/bin/go
|
||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||
|
||||
ENTRYPOINT [ "go" ]
|
Loading…
Reference in a new issue