mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 10:02:31 +00:00
- now supports image pull and run end to end - update runc to last version before spec update fix #1302 - remove ext2 utils from init Signed-off-by: Justin Cormack <justin.cormack@docker.com>
24 lines
624 B
Docker
24 lines
624 B
Docker
FROM golang:1.7-alpine3.5
|
|
RUN \
|
|
apk update && apk upgrade -a && \
|
|
apk add --no-cache \
|
|
bash \
|
|
gcc \
|
|
git \
|
|
libc-dev \
|
|
libseccomp-dev \
|
|
linux-headers \
|
|
make \
|
|
&& true
|
|
ENV RUNC_COMMIT=31980a53ae7887b2c8f8715d13c3eb486c27b6cf
|
|
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/
|
|
WORKDIR /
|
|
COPY . .
|