mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 08:07:12 +00:00
pull in newer containerd v1.0.0-alpha0 via updated alpine base, update runc to 429a5387123625040bacfbb60d96b1cbd02293ab which is vendored by that version of containerd (and also update alpine base for runc) Signed-off-by: Ian Campbell <ian.campbell@docker.com>
28 lines
712 B
Docker
28 lines
712 B
Docker
FROM linuxkit/alpine:8bb8664eec04e02a8a131c53aa7d5d94119270ef as alpine
|
|
RUN \
|
|
apk add \
|
|
bash \
|
|
gcc \
|
|
git \
|
|
go \
|
|
libc-dev \
|
|
libseccomp-dev \
|
|
linux-headers \
|
|
make \
|
|
&& true
|
|
ENV GOPATH=/root/go
|
|
ENV RUNC_COMMIT=429a5387123625040bacfbb60d96b1cbd02293ab
|
|
RUN mkdir -p $GOPATH/src/github.com/opencontainers && \
|
|
cd $GOPATH/src/github.com/opencontainers && \
|
|
git clone https://github.com/opencontainers/runc.git
|
|
WORKDIR $GOPATH/src/github.com/opencontainers/runc
|
|
RUN git checkout $RUNC_COMMIT
|
|
# TODO static pie, currently no easy way to change build options
|
|
RUN make static BUILDTAGS="seccomp"
|
|
RUN cp runc /usr/bin/
|
|
|
|
FROM scratch
|
|
WORKDIR /
|
|
ENTRYPOINT []
|
|
COPY --from=alpine /usr/bin/runc /usr/bin/
|