mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 20:41:46 +00:00
The remaining packages will be updated with subsequent commits to also include the config label. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
16 lines
335 B
Docker
16 lines
335 B
Docker
FROM linuxkit/alpine:630ee558e4869672fae230c78364e367b8ea67a9 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"]
|