mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
18 lines
273 B
Docker
18 lines
273 B
Docker
FROM quay.io/vektorcloud/go:1.11
|
|
|
|
RUN apk add --no-cache make
|
|
|
|
WORKDIR /app
|
|
COPY go.mod .
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
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"]
|