mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 18:57:35 +00:00
Move to the development track of `containerd` not the legacy 0.2 branch. The commands have changed a bit. This does increase the image size as we are bundling the Docker copy and our copy, and the new one is larger as it is growing features. Hopefully Docker will shrink eventually. Also we may replace `ctr` with a library. Fix #1029 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
20 lines
598 B
Docker
20 lines
598 B
Docker
FROM golang:1.7-alpine3.5
|
|
RUN \
|
|
apk update && apk upgrade -a && \
|
|
apk add --no-cache \
|
|
gcc \
|
|
git \
|
|
libc-dev \
|
|
make \
|
|
&& true
|
|
ENV CONTAINERD_COMMIT=3b79682548339895fcf9976f60ddea8abc5fc97e
|
|
RUN mkdir -p $GOPATH/src/github.com/docker && \
|
|
cd $GOPATH/src/github.com/docker && \
|
|
git clone https://github.com/docker/containerd.git
|
|
WORKDIR $GOPATH/src/github.com/docker/containerd
|
|
RUN git checkout $CONTAINERD_COMMIT
|
|
RUN make binaries GO_GCFLAGS="-buildmode pie --ldflags '-extldflags \"-fno-PIC -static\"'"
|
|
RUN cp bin/containerd bin/ctr bin/containerd-shim /usr/bin/
|
|
WORKDIR /
|
|
COPY . .
|