gotty-dockerfile/Dockerfile

13 lines
282 B
Text
Raw Permalink Normal View History

2018-06-21 10:34:02 -04:00
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"]