diff options
| author | 2019-08-05 13:32:23 -0700 | |
|---|---|---|
| committer | 2019-08-05 13:32:23 -0700 | |
| commit | e5262ad3ddaced0731897205a6344ebaaba9cc60 (patch) | |
| tree | f7adcab29a14e020c86480b776eba09b6bdbf1f8 /docker | |
| parent | Merge pull request #34 from python-discord/linting-fix (diff) | |
| parent | Fix version specifier for libnl3 (diff) | |
Merge pull request #36 from python-discord/dependencies
Pin dependencies
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base.Dockerfile | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/docker/base.Dockerfile b/docker/base.Dockerfile index 19fc1b8..993e45d 100644 --- a/docker/base.Dockerfile +++ b/docker/base.Dockerfile @@ -1,25 +1,27 @@ -FROM alpine:3.9.2 as builder +FROM alpine:3.10 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 + 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 --depth=1 https://github.com/google/nsjail.git /nsjail \ + && cd /nsjail \ + && git checkout 0b1d5ac03932c140f08536ed72b4b58741e7d3cf WORKDIR /nsjail RUN make -FROM python:3.7.3-alpine3.9 +FROM python:3.7.4-alpine3.10 ENV PIP_NO_CACHE_DIR=false RUN apk add --no-cache --update \ - libnl3 \ - libstdc++ \ - protobuf -RUN pip install pipenv + 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 |