aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-12-20 15:28:01 -0800
committerGravatar MarkKoz <[email protected]>2021-12-20 15:28:01 -0800
commitb1bcd3b04fb2a83fd7bd4fe930582ccf0b6bf627 (patch)
treed9be3d05f08fb610343e3a009bb6d179b41c3b17 /Dockerfile
parentUse the system locale's encoding for cgroup files (diff)
Update NsJail
The updated versions adds support for telling NsJail to set the max swap memory in the cgroup. Resolve #125
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index b56d25a..0275fdb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,7 @@
FROM python:3.10-slim-buster as builder
+
+WORKDIR /nsjail
+
RUN apt-get -y update \
&& apt-get install -y \
bison=2:3.3.* \
@@ -11,12 +14,8 @@ RUN apt-get -y update \
make=4.2.* \
pkg-config=0.29-6 \
protobuf-compiler=3.6.*
-RUN git clone \
- -b '2.9' \
- --single-branch \
- --depth 1 \
- https://github.com/google/nsjail.git /nsjail
-WORKDIR /nsjail
+RUN git clone -b master --single-branch https://github.com/google/nsjail.git . \
+ && git checkout dccf911fd2659e7b08ce9507c25b2b38ec2c5800
RUN make
# ------------------------------------------------------------------------------