-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# syntax=docker/dockerfile:1
FROM ubuntu:22.04
# Install dependencies
RUN <<EOF
set -eux
apt-get update -y
apt-get install --no-install-recommends -y \
lsb-release sudo \
zip unzip wget git ca-certificates \
curl iproute2 iputils-ping net-tools \
python3 python3-pip python-is-python3 \
tcpdump vim x11-xserver-utils xterm
rm -rf /var/lib/apt/lists/*
update-ca-certificates
EOF
COPY . /mini-ndn
WORKDIR /mini-ndn
RUN <<EOF
set -eux
pip3 install -r requirements.txt
./install.sh -y --source
make -C dl/mininet install
make -C dl/mininet-wifi install
rm -rf dl /var/lib/apt/lists/*
EOF
# Expose ports for openvswitch-switch
EXPOSE 6633 6653 6640
ENTRYPOINT ["docker/entrypoint.sh"]