mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
90e2ca1d48
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
23 lines
460 B
Docker
23 lines
460 B
Docker
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" ]
|