Files
attack-defense-platform/services/gemas-fetcher/Dockerfile
T

22 lines
599 B
Docker
Raw Normal View History

FROM python:3.10-slim-bookworm
ARG PASSWORD
RUN echo root:${PASSWORD} | chpasswd
COPY apt-insecure.conf /etc/apt/apt.conf.d/99gemastik-insecure
RUN apt-get -o Acquire::AllowInsecureRepositories=true update && apt-get install -y openssh-server curl
RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN service ssh start
RUN pip install --upgrade mongoengine blacksheep uvicorn passlib pycryptodome pytz urllib3 requests
WORKDIR /app
COPY ./src .
RUN touch /flag.txt
COPY ./start.sh .
RUN chmod +x /app/start.sh
CMD ./start.sh