From 90e2ca1d48fa7af2fe93c5f557518adcce7f5113 Mon Sep 17 00:00:00 2001
From: Jess Frazelle <acidburn@jessfraz.com>
Date: Sun, 15 Dec 2019 17:09:55 -0800
Subject: [PATCH] add golinks

Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
---
 golinks/Dockerfile | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 golinks/Dockerfile

diff --git a/golinks/Dockerfile b/golinks/Dockerfile
new file mode 100644
index 000000000..046837c93
--- /dev/null
+++ b/golinks/Dockerfile
@@ -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" ]