Skip to content

Commit

Permalink
add golinks
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Dec 16, 2019
1 parent 0aafb7c commit 90e2ca1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions golinks/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM golang:alpine as builder
LABEL maintainer "Jessie Frazelle <[email protected]>"

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" ]

0 comments on commit 90e2ca1

Please sign in to comment.