gotty-client/Dockerfile

12 lines
372 B
Docker
Raw Normal View History

# build
2019-03-29 23:35:29 +08:00
FROM golang:1.12 as builder
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"]