mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 21:42:39 +00:00
17 lines
395 B
Docker
17 lines
395 B
Docker
FROM linuxkit/alpine:f3cd219615428b2bd943411723eb28875275fae7 AS mirror
|
|
|
|
RUN apk add --no-cache go musl-dev
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
|
|
COPY main.go /go/src/sysfs/
|
|
RUN go-compile.sh /go/src/sysfs
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /go/bin/sysfs /usr/bin/sysfs
|
|
COPY etc/ /etc/
|
|
CMD ["/usr/bin/sysfs"]
|
|
LABEL org.mobyproject.config='{"net": "new", "ipc": "new"}'
|