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
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"]