AkylaiBva commited on
Commit
0cd8977
·
verified ·
1 Parent(s): 4d79ee6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ git clone https://huggingface.co/spaces/AkylaiBva/Learning
2
+
3
+
4
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
5
+ # you will also find guides on how best to write your Dockerfile
6
+
7
+ FROM python:3.9
8
+
9
+ WORKDIR /code
10
+
11
+ COPY ./requirements.txt /code/requirements.txt
12
+
13
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
+
15
+ COPY . .
16
+
17
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
18
+ Then commit and push:
19
+
20
+ git add Dockerfile
21
+ git commit -m "Add application file"
22
+ git push