Hritik R commited on
Commit
271945b
·
unverified ·
1 Parent(s): b032836

Add Dockerfile

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. Dockerfile +10 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .DS_Store
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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
+ WORKDIR /RBProfiles
7
+
8
+ RUN pip install --no-cache-dir --upgrade -q -r requirements.txt
9
+
10
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "critical"]