-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 775 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (18 loc) · 775 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
# Use a lightweight Ubuntu desktop image with VNC and NoVNC built-in
FROM dorowu/ubuntu-desktop-lxde-vnc:focal
# Set non-interactive mode for apt-get
ENV DEBIAN_FRONTEND=noninteractive
# Update apt and install Python 3, pip, and tkinter
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-tk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install required Python packages for the networking projects
RUN pip3 install --no-cache-dir scapy psutil
# Set the working directory
WORKDIR /root/Networking-Projects
# Copy the entire repository into the container
COPY . /root/Networking-Projects/
# The base image automatically starts the VNC server and NoVNC web interface on port 80.
# We expose port 80 for the web interface.
EXPOSE 80