-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 777 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 777 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
# Use a small Ubuntu base image
FROM ubuntu:20.04
ENV TZ=America/New_York
# Refresh the timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install necessary tools for networking and Rust development
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt install -y iputils-ping net-tools iproute2 tshark netcat tcpdump curl build-essential && \
rm -rf /var/lib/apt/lists/*
# Install Rust using rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Set up the environment variables for Rust
ENV PATH="/root/.cargo/bin:${PATH}"
# Create a work directory and set it as the working directory
WORKDIR /app
# Mount the current directory as a volume
VOLUME /app
CMD ["tail", "-f", "/dev/null"]