Initial Dockerfile commit

This commit is contained in:
Tony Blyler 2018-06-21 10:34:02 -04:00
parent df4b7e944a
commit a1c625cfcd

12
Dockerfile Normal file
View file

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