gotty-client/Dockerfile

14 lines
413 B
Docker
Raw Normal View History

# build
2020-08-31 16:25:27 +08:00
FROM golang:1.15-alpine as builder
RUN apk add --no-cache git gcc musl-dev make
WORKDIR /go/src/github.com/moul/gotty-client
COPY go.* ./
RUN go mod download
COPY . ./
RUN make install
# minimal runtime
2020-08-31 16:25:27 +08:00
FROM alpine:3.12
COPY --from=builder /go/bin/gotty-client /bin/
ENTRYPOINT ["/bin/gotty-client"]