76c7a23e65
Implement best practices for Dockerfiles as per the official documentation: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/ Reduces image size from 451.6MB to 404.9MB.
22 lines
371 B
Docker
22 lines
371 B
Docker
FROM ubuntu:16.04
|
|
|
|
RUN apt-get -y update && apt-get install -y \
|
|
autoconf \
|
|
bison \
|
|
check \
|
|
flex \
|
|
gcc \
|
|
git \
|
|
libtool \
|
|
make \
|
|
pkg-config \
|
|
protobuf-c-compiler \
|
|
re2c \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN git clone https://github.com/google/nsjail.git
|
|
|
|
WORKDIR /nsjail
|
|
|
|
RUN make && mv /nsjail/nsjail /bin && rm -rf -- /nsjail
|