Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mud-ali committed Jun 3, 2024
1 parent 999f6b5 commit 59a1719
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions user-1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
solve.txt
.dockerignore
.gitignore
16 changes: 14 additions & 2 deletions user-1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
FROM python:3.12-bookworm
FROM python:3.12-slim-bookworm

# TODO
RUN useradd -ms /bin/bash bcactf && chown -R bcactf:bcactf /home/bcactf

USER bcactf

WORKDIR /home/bcactf

COPY --chown=bcactf:bcactf . .

RUN pip install flask && mkdir -p /home/bcactf/dbs

EXPOSE 7272

CMD [ "python", "server.py", "7272" ]
1 change: 0 additions & 1 deletion user-1/chall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ deploy:
authors:
- Marvin
visible: true
# TODO: deployment
2 changes: 1 addition & 1 deletion user-1/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ def index():

if __name__ == "__main__":
restart()
app.run()
app.run(host="0.0.0.0", port=7272)

0 comments on commit 59a1719

Please sign in to comment.