2017-12-13 22:15:58 +08:00
|
|
|
# build
|
2021-03-12 12:02:58 +08:00
|
|
|
FROM golang:1.16.2-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
|
2021-03-26 12:03:32 +08:00
|
|
|
FROM alpine:3.13.3
|
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"]
|