Untitled
unknown
plain_text
a year ago
731 B
3
Indexable
# Base image
FROM ubuntu:latest
# Set environment variables to prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Update and install necessary packages
RUN apt-get update && \
apt-get install -y \
python3 \
python3-pip \
nano \
bash \
net-tools \
iputils-ping \
vim \
&& apt-get clean
# Install Python packages
RUN pip3 install requests
# Copy any necessary initialization script (init.sh) or other files like attack.py
COPY init.sh /etc/init.sh
COPY attack.py /home/attack.py
RUN chmod +x /etc/init.sh
# Open a volume for persistent storage if needed
VOLUME [ "/root" ]
# Set the default command to run your init script
CMD [ "/etc/init.sh" ]
Editor is loading...
Leave a Comment