Update dockerfile
This commit is contained in:
parent
4c2d51b4c6
commit
a5899768f7
2 changed files with 15 additions and 5 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# SpaceDrive
|
||||||
|
|
||||||
|
## Deploy chall
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo docker build -t chall .
|
||||||
|
sudo docker run --rm -p 5000:5000 -it chall
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue