aboutsummaryrefslogtreecommitdiffstats
path: root/docker/base.Dockerfile
blob: 19fc1b8ef723442ac22d4fbfc32ee1136852d284 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine:3.9.2 as builder
RUN apk add --no-cache --update  \
        bison \
        bsd-compat-headers \
        flex \
        g++ \
        gcc \
        git \
        libnl3-dev \
        linux-headers \
        make \
        protobuf-dev
RUN git clone --depth=1 https://github.com/google/nsjail.git /nsjail
WORKDIR /nsjail
RUN make

FROM python:3.7.3-alpine3.9
ENV PIP_NO_CACHE_DIR=false
RUN apk add --no-cache --update \
        libnl3 \
        libstdc++ \
        protobuf
RUN pip install pipenv
COPY --from=builder /nsjail/nsjail /usr/sbin/
RUN chmod +x /usr/sbin/nsjail