Initial Dockerfile commit
This commit is contained in:
parent
df4b7e944a
commit
a1c625cfcd
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue