Skip to content

Commit fae8053

Browse files
committed
Remove explicit package versions from Dockerfile
It's using a stable version of Debian, so it's redundant to lock packages to specific versions.
1 parent 3888578 commit fae8053

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ WORKDIR /nsjail
55

66
RUN apt-get -y update \
77
&& apt-get install -y \
8-
bison=2:3.3.* \
9-
flex=2.6.* \
10-
g++=4:8.3.* \
11-
gcc=4:8.3.* \
12-
git=1:2.20.* \
13-
libprotobuf-dev=3.6.* \
14-
libnl-route-3-dev=3.4.* \
15-
make=4.2.* \
16-
pkg-config=0.29-6 \
17-
protobuf-compiler=3.6.*
8+
bison\
9+
flex \
10+
g++ \
11+
gcc \
12+
git \
13+
libprotobuf-dev\
14+
libnl-route-3-dev \
15+
make \
16+
pkg-config \
17+
protobuf-compiler
1818
RUN git clone -b master --single-branch https://github.com/google/nsjail.git . \
1919
&& git checkout dccf911fd2659e7b08ce9507c25b2b38ec2c5800
2020
RUN make
@@ -31,10 +31,10 @@ ENV PATH=/root/.local/bin:$PATH \
3131

3232
RUN apt-get -y update \
3333
&& apt-get install -y \
34-
gcc=4:8.3.* \
35-
git=1:2.20.* \
36-
libnl-route-3-200=3.4.* \
37-
libprotobuf17=3.6.* \
34+
gcc \
35+
git \
36+
libnl-route-3-200 \
37+
libprotobuf17 \
3838
&& rm -rf /var/lib/apt/lists/*
3939

4040
COPY --from=builder /nsjail/nsjail /usr/sbin/

0 commit comments

Comments
 (0)