mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-07 20:41:30 +00:00
- in a much better state than previous commit, but still some issues running system containers with it that need more work, so staying with `runc`. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
22 lines
645 B
Docker
22 lines
645 B
Docker
FROM golang:1.7-alpine3.5
|
|
RUN \
|
|
apk update && apk upgrade -a && \
|
|
apk add --no-cache \
|
|
btrfs-progs-dev \
|
|
gcc \
|
|
git \
|
|
libc-dev \
|
|
linux-headers \
|
|
make \
|
|
&& true
|
|
ENV CONTAINERD_COMMIT=0e0ae74b824c71f991de4765711a383450d60655
|
|
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 bin/dist /usr/bin/
|
|
WORKDIR /
|
|
COPY . .
|