mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 16:12:57 +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>
17 lines
469 B
Docker
17 lines
469 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='{"net": "host","pid": "host", "ipc": "host", "readonly": true, "capabilities": ["CAP_SYS_ADMIN"]}'
|