Update dockerfile

This commit is contained in:
atxr 2024-03-01 12:46:58 +01:00
parent 4c2d51b4c6
commit a5899768f7
2 changed files with 15 additions and 5 deletions

View file

@ -1,20 +1,22 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt-get update RUN apt update && apt install python3-pip ncat -y
RUN useradd -m -s /bin/bash user RUN useradd -m -s /bin/bash user
USER user # USER user
WORKDIR /home/user WORKDIR /home/user
COPY dist/mineziperd . COPY dist/mineziperd .
COPY webapp . COPY src/webapp webapp
COPY flag.txt . COPY flag.txt .
RUN ./mineziperd & RUN ./mineziperd &
WORKDIR /home/user/webapp WORKDIR /home/user/webapp
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ENTRYPOINT [ "python3" ] EXPOSE 5000
CMD [ "app.py" ] ENV FLASK_APP=app.py
CMD ["flask", "run", "--host", "0.0.0.0"]

View file

@ -0,0 +1,8 @@
# SpaceDrive
## Deploy chall
```bash
sudo docker build -t chall .
sudo docker run --rm -p 5000:5000 -it chall
```