mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-22 14:26:32 +00:00
0eb21735ae
accidentally broke some package
builds by switching linuxkit/alpine to linuxkit/containerd. Let's revert
the ones that shouldn't be there.
Closes #1991
Signed-off-by: Tycho Andersen <tycho@docker.com>
17 lines
440 B
Docker
17 lines
440 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/sysctl/
|
|
RUN go-compile.sh /go/src/sysctl
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /go/bin/sysctl /usr/bin/sysctl
|
|
COPY etc/ /etc/
|
|
CMD ["/usr/bin/sysctl"]
|
|
LABEL org.mobyproject.config='{"pid": "host", "readonly": true, "capabilities": ["CAP_SYS_ADMIN"]}'
|