Merge pull request #25 from cstrouse/dockerfile-enhancements
Refactor using current official Dockerfile best practices
This commit is contained in:
commit
7812e3597a
23
Dockerfile
23
Dockerfile
@ -1,8 +1,21 @@
|
||||
FROM ubuntu
|
||||
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 apt-get -y update
|
||||
RUN apt-get -y install autoconf bison check flex gcc git libtool make pkg-config protobuf-c-compiler re2c
|
||||
RUN git clone https://github.com/google/nsjail.git
|
||||
RUN cd /nsjail && make
|
||||
RUN mv /nsjail/nsjail /bin && rm -rf -- /nsjail
|
||||
|
||||
WORKDIR /nsjail
|
||||
|
||||
RUN make && mv /nsjail/nsjail /bin && rm -rf -- /nsjail
|
||||
|
Loading…
Reference in New Issue
Block a user