Hritik R commited on
Commit
4ac02f0
·
unverified ·
1 Parent(s): 15a0001

add Dockerfile

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. Dockerfile +8 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .DS_Store
Dockerfile ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \
4
+ git clone $(cat /run/secrets/GIT_REPO) .
5
+
6
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
7
+
8
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]