mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 09:52:30 +00:00
Update everything including the current linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b to the new linuxkit/containerd:deaf5bf838bf7f131c2287ecff3ed9835b0497e2. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
29 lines
899 B
Docker
29 lines
899 B
Docker
FROM linuxkit/alpine:630ee558e4869672fae230c78364e367b8ea67a9 as alpine
|
|
RUN \
|
|
apk add \
|
|
btrfs-progs-dev \
|
|
gcc \
|
|
git \
|
|
go \
|
|
libc-dev \
|
|
linux-headers \
|
|
make \
|
|
&& true
|
|
ENV GOPATH=/root/go
|
|
ENV CONTAINERD_COMMIT=7fc91b05917e93d474fab9465547d44eacd10ce3
|
|
RUN mkdir -p $GOPATH/src/github.com/containerd && \
|
|
cd $GOPATH/src/github.com/containerd && \
|
|
git clone https://github.com/containerd/containerd.git
|
|
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
|
RUN git checkout $CONTAINERD_COMMIT
|
|
RUN make binaries EXTRA_FLAGS="-buildmode pie" EXTRA_LDFLAGS="-extldflags \\\"-fno-PIC -static\\\""
|
|
RUN cp bin/containerd bin/ctr bin/containerd-shim bin/dist /usr/bin/
|
|
WORKDIR /
|
|
COPY . .
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
WORKDIR /
|
|
COPY --from=alpine /usr/bin/containerd /usr/bin/ctr /usr/bin/dist /usr/bin/containerd-shim /usr/bin/
|
|
COPY --from=alpine /etc/containerd/config.toml /etc/containerd/
|