Build docker image from current source
authorD0han <d0hanzibi@gmail.com>
Wed, 11 Apr 2018 15:02:20 +0000 (17:02 +0200)
committerD0han <d0hanzibi@gmail.com>
Wed, 11 Apr 2018 15:02:20 +0000 (17:02 +0200)
Dockerfile

index 81e25db..5bd472a 100644 (file)
@@ -14,8 +14,6 @@ RUN apt-get -y update && apt-get install -y \
     protobuf-compiler \
     && rm -rf /var/lib/apt/lists/*
 
-RUN git clone --depth=1 https://github.com/google/nsjail.git
+COPY . /nsjail
 
-WORKDIR /nsjail
-
-RUN make && mv /nsjail/nsjail /bin && rm -rf -- /nsjail
+RUN cd /nsjail && make && mv /nsjail/nsjail /bin && rm -rf -- /nsjail