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
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt update && apt install python3-pip ncat -y
|
||||
|
||||
RUN useradd -m -s /bin/bash user
|
||||
|
||||
USER user
|
||||
# USER user
|
||||
WORKDIR /home/user
|
||||
|
||||
COPY dist/mineziperd .
|
||||
COPY webapp .
|
||||
COPY src/webapp webapp
|
||||
COPY flag.txt .
|
||||
|
||||
RUN ./mineziperd &
|
||||
|
||||
WORKDIR /home/user/webapp
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
ENTRYPOINT [ "python3" ]
|
||||
CMD [ "app.py" ]
|
||||
EXPOSE 5000
|
||||
ENV FLASK_APP=app.py
|
||||
CMD ["flask", "run", "--host", "0.0.0.0"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue