2017-12-13 22:15:58 +08:00
|
|
|
# build
|
2020-04-27 19:09:07 +08:00
|
|
|
FROM golang:1.14-alpine as builder
|
|
|
|
RUN apk add --no-cache git gcc musl-dev make
|
2017-12-13 22:15:58 +08:00
|
|
|
WORKDIR /go/src/github.com/moul/gotty-client
|
2020-04-27 19:09:07 +08:00
|
|
|
COPY go.* ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY . ./
|
2017-12-13 22:15:58 +08:00
|
|
|
RUN make install
|
|
|
|
|
|
|
|
# minimal runtime
|
2020-04-27 19:09:07 +08:00
|
|
|
FROM alpine:3.11
|
|
|
|
COPY --from=builder /go/bin/gotty-client /bin/
|
2017-12-13 22:15:58 +08:00
|
|
|
ENTRYPOINT ["/bin/gotty-client"]
|