2017-12-13 22:15:58 +08:00
|
|
|
# build
|
2019-03-29 23:35:29 +08:00
|
|
|
FROM golang:1.12 as builder
|
2017-12-13 22:15:58 +08:00
|
|
|
RUN apt update && apt -y install jq
|
|
|
|
COPY . /go/src/github.com/moul/gotty-client
|
|
|
|
WORKDIR /go/src/github.com/moul/gotty-client
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
# minimal runtime
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /go/bin/gotty-client /bin/gotty-client
|
|
|
|
ENTRYPOINT ["/bin/gotty-client"]
|