From be8673b2e301518f357fd120e144c5d809fe411f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 26 Nov 2022 16:52:25 +0100 Subject: [PATCH] fix adding nsjail based on arg --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58b14ad8b9..30bfb5d17c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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