diff options
| author | 2019-09-20 22:39:28 -0700 | |
|---|---|---|
| committer | 2019-09-20 22:39:28 -0700 | |
| commit | 00b7c8e52b7fdf55d886dbf2fff4e6144882640b (patch) | |
| tree | c3a76bbaeb4c69f35b6d32522dee1bd55ad3e452 /docker | |
| parent | Login with v1 API (diff) | |
| parent | CI: use DockerHub container registry & remove login tasks (diff) | |
Merge branch 'ci' into research
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base.Dockerfile | 29 | 
1 files changed, 27 insertions, 2 deletions
| diff --git a/docker/base.Dockerfile b/docker/base.Dockerfile index 1f1b9a6..1edff49 100644 --- a/docker/base.Dockerfile +++ b/docker/base.Dockerfile @@ -1,2 +1,27 @@ -FROM alpine:3.9.2 -RUN echo hello +FROM alpine:3.10 as builder +RUN apk add --no-cache --update  \ +        bison~=3.3 \ +        bsd-compat-headers~=0.7 \ +        flex~=2.6 \ +        g++~=8.3 \ +        gcc~=8.3 \ +        git~=2.22 \ +        libnl3-dev~=3.4 \ +        linux-headers~=4.19 \ +        make~=4.2 \ +        protobuf-dev~=3.6 +RUN git clone https://github.com/google/nsjail.git /nsjail \ +    && cd /nsjail \ +    && git checkout 0b1d5ac03932c140f08536ed72b4b58741e7d3cf +WORKDIR /nsjail +RUN make + +FROM python:3.7.4-alpine3.10 +ENV PIP_NO_CACHE_DIR=false +RUN apk add --no-cache --update \ +        libnl3~=3.4 \ +        libstdc++~=8.3 \ +        protobuf~=3.6 +RUN pip install pipenv==2018.11.26 +COPY --from=builder /nsjail/nsjail /usr/sbin/ +RUN chmod +x /usr/sbin/nsjail | 
