Merge pull request #137 from seemethere/scratch
Merged with https://github.com/seemethere/unir Upstream-commit: e1e487b7de1138d3abf965c505dc6af0c213e86b Component: packaging
This commit is contained in:
@ -51,14 +51,12 @@ RUN git clone https://github.com/opencontainers/runc.git /go/src/github.com/open
|
||||
WORKDIR /go/src/github.com/opencontainers/runc
|
||||
RUN source /binaries-commits && \
|
||||
git checkout -q "$RUNC_COMMIT" && \
|
||||
make BUILDTAGS='seccomp apparmor' && make install
|
||||
make BUILDTAGS='seccomp apparmor' static && make install
|
||||
|
||||
# Final docker image
|
||||
FROM alpine:3.7
|
||||
RUN apk --update add ca-certificates iptables net-tools libseccomp git && \
|
||||
rm -rf /var/cache/apk/*
|
||||
COPY --from=dockerd-builder /sbin/dockerd /usr/local/sbin/
|
||||
COPY --from=proxy-builder /sbin/docker-proxy /usr/local/sbin/
|
||||
COPY --from=init-builder /sbin/docker-init /usr/local/sbin/
|
||||
COPY --from=runc-builder /usr/local/sbin/runc /usr/local/sbin/
|
||||
ENTRYPOINT ["/usr/local/sbin/dockerd"]
|
||||
FROM scratch
|
||||
COPY --from=dockerd-builder /sbin/dockerd /sbin/
|
||||
COPY --from=proxy-builder /sbin/docker-proxy /sbin/
|
||||
COPY --from=init-builder /sbin/docker-init /sbin/
|
||||
COPY --from=runc-builder /usr/local/sbin/runc /sbin/
|
||||
ENTRYPOINT ["/sbin/dockerd"]
|
||||
|
||||
Reference in New Issue
Block a user