Skip to content

Commit

Permalink
use wget instead of ADD to download ns-3
Browse files Browse the repository at this point in the history
This allows Docker to cache this step.
  • Loading branch information
marten-seemann committed Aug 23, 2020
1 parent 85c7fd9 commit 39c61cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ubuntu:20.04 AS builder

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3 build-essential cmake
DEBIAN_FRONTEND=noninteractive apt-get install -y python3 build-essential cmake wget

ENV VERS 3.31
ADD https://www.nsnam.org/release/ns-allinone-$VERS.tar.bz2 .
RUN wget https://www.nsnam.org/release/ns-allinone-$VERS.tar.bz2
RUN tar xjf ns-allinone-$VERS.tar.bz2 && rm ns-allinone-$VERS.tar.bz2
RUN mv /ns-allinone-$VERS/ns-$VERS /ns3

Expand Down

0 comments on commit 39c61cd

Please sign in to comment.