2017-12-13 22:15:58 +08:00
|
|
|
# build
|
2020-08-31 16:25:27 +08:00
|
|
|
FROM golang:1.15-alpine as builder
|
2020-04-27 19:09:07 +08:00
|
|
|
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-08-31 16:25:27 +08:00
|
|
|
FROM alpine:3.12
|
2020-04-27 19:09:07 +08:00
|
|
|
COPY --from=builder /go/bin/gotty-client /bin/
|
2017-12-13 22:15:58 +08:00
|
|
|
ENTRYPOINT ["/bin/gotty-client"]
|