fix adding nsjail based on arg

This commit is contained in:
Ruben Fiszel
2022-11-26 16:52:25 +01:00
parent 26aa27452e
commit be8673b2e3
+3 -3
View File
@@ -4,7 +4,7 @@ WORKDIR /nsjail
ARG nsjail=""
RUN if [[ "$features" == "true" ]]; then apt-get -y update \
RUN if [[ "$nsjail" == "true" ]]; then apt-get -y update \
&& apt-get install -y \
bison=2:3.3.* \
flex=2.6.* \
@@ -18,9 +18,9 @@ RUN if [[ "$features" == "true" ]]; then apt-get -y update \
protobuf-compiler=3.6.*; fi
RUN if [[ "$features" == "true" ]]; then git clone -b master --single-branch https://github.com/google/nsjail.git . \
RUN if [[ "$nsjail" == "true" ]]; then git clone -b master --single-branch https://github.com/google/nsjail.git . \
&& git checkout dccf911fd2659e7b08ce9507c25b2b38ec2c5800; fi
RUN if [[ "$features" == "true" ]]; then make; else touch nsjail; fi
RUN if [[ "$nsjail" == "true" ]]; then make; else touch nsjail; fi
FROM rust:slim-buster AS rust_base