mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-07 10:06:33 +00:00
This is part of the new moby tool work to get a minimal system up that can be expanded. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
20 lines
607 B
Docker
20 lines
607 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=1dc5d652ac1adf8f0a92ee8eff7af07b129d4e21
|
|
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 . .
|