From a1c625cfcdb4cea1f8b453fbcfd6365968ab2fba Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Thu, 21 Jun 2018 10:34:02 -0400 Subject: [PATCH] Initial Dockerfile commit --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a185521 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1-alpine AS builder + +RUN apk add --no-cache git upx +RUN CGO_ENBALED=0 go get -ldflags '-w' github.com/yudai/gotty +RUN mv ${GOPATH}/bin/gotty /bin/ && \ + upx --brute /bin/gotty + +FROM alpine:3.7 + +COPY --from=builder /bin/gotty /bin/gotty + +ENTRYPOINT ["/bin/gotty"]