ctop/Dockerfile

18 lines
273 B
Docker
Raw Normal View History

2020-01-03 13:18:01 +00:00
FROM quay.io/vektorcloud/go:1.13
2017-07-12 03:05:08 +00:00
RUN apk add --no-cache make
2018-12-01 17:50:47 +00:00
WORKDIR /app
COPY go.mod .
RUN go mod download
2017-07-12 03:05:08 +00:00
2018-12-01 17:50:47 +00:00
COPY . .
2017-07-12 03:05:08 +00:00
RUN make build && \
mkdir -p /go/bin && \
mv -v ctop /go/bin/
FROM scratch
2018-06-28 11:19:07 +00:00
ENV TERM=linux
2017-07-12 03:05:08 +00:00
COPY --from=0 /go/bin/ctop /ctop
2017-03-10 08:37:46 +00:00
ENTRYPOINT ["/ctop"]