Skip to content

Commit

Permalink
feat: ✨ add Flask Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 13, 2023
1 parent ec0de56 commit 3c2198f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tagger/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.10-slim-buster

WORKDIR /tagger

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

COPY . .

CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
3 changes: 3 additions & 0 deletions tagger/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ def start_tag_file(file_id):
thread.start()

return {"file": file_id, "model": "facebook/detr-resnet-50"}, 202

if __name__ == "__main__":
app.run()

0 comments on commit 3c2198f

Please sign in to comment.