Files
attack-defense-platform/services/burvesigner/Dockerfile
T

28 lines
702 B
Docker
Raw Normal View History

FROM python:3.11-slim-bookworm
ARG PASSWORD
WORKDIR /opt
COPY apt-insecure.conf /etc/apt/apt.conf.d/99gemastik-insecure
RUN apt-get -o Acquire::AllowInsecureRepositories=true update && \
apt-get -y --allow-unauthenticated install -y nano openssh-server \
gcc python-dev python3-dev libgmp3-dev curl
RUN echo root:${PASSWORD} | chpasswd
RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN service ssh start
COPY src/ .
RUN touch /flag.txt
RUN touch /priv.data
RUN pip install -r requirements.txt
RUN python3 database/init.py merricx_number_1_fans ${PASSWORD}
RUN chmod +x ./start.sh
EXPOSE 80
EXPOSE 22
CMD ./start.sh