mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-26 08:03:20 +00:00
17 lines
449 B
Docker
17 lines
449 B
Docker
FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror
|
|
|
|
RUN apk add --no-cache go musl-dev linux-headers
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
# Hack to work around an issue with go on arm64 requiring gcc
|
|
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
|
|
|
COPY . /go/src/kmsg/
|
|
RUN go-compile.sh /go/src/kmsg
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /go/bin/kmsg /usr/bin/kmsg
|
|
CMD ["/usr/bin/kmsg"]
|