mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
18 lines
368 B
Docker
18 lines
368 B
Docker
FROM quay.io/vektorcloud/go:1.10
|
|
|
|
RUN apk add --no-cache make
|
|
|
|
COPY Gopkg.* /go/src/github.com/bcicen/ctop/
|
|
WORKDIR /go/src/github.com/bcicen/ctop/
|
|
RUN dep ensure -vendor-only
|
|
|
|
COPY . /go/src/github.com/bcicen/ctop
|
|
RUN make build && \
|
|
mkdir -p /go/bin && \
|
|
mv -v ctop /go/bin/
|
|
|
|
FROM scratch
|
|
ENV TERM=linux
|
|
COPY --from=0 /go/bin/ctop /ctop
|
|
ENTRYPOINT ["/ctop"]
|