mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-27 20:55:39 +00:00
In a subsequent commit, all YAML files will be updated with
new package hashes since all packages needed rebuild due to
build system changes in commit adae27b8d1 ("Simplify
Makefiles for Packages"). So, we might as well bring all
packages up to the latest alpine base package.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
17 lines
395 B
Docker
17 lines
395 B
Docker
FROM linuxkit/alpine:c608d404c1cb36cce0c7d9303e30b52c9d81ccf0 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"}'
|