Start mineziperd from app
This commit is contained in:
parent
1aa0573482
commit
2fa66f3860
3 changed files with 17 additions and 8 deletions
|
|
@ -4,19 +4,17 @@ 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 src/webapp webapp
|
||||
COPY flag.txt .
|
||||
|
||||
RUN ./mineziperd &
|
||||
|
||||
WORKDIR /home/user/webapp
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
EXPOSE 5000
|
||||
ENV FLASK_APP=app.py
|
||||
CMD ["flask", "run", "--host", "0.0.0.0"]
|
||||
CMD ["python3", "-m", "flask", "run", "--host", "0.0.0.0"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue