AItool commited on
Commit
0d4db9d
·
verified ·
1 Parent(s): c65e772

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -12,8 +12,13 @@ RUN mkdir -p data \
12
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- EXPOSE 5001
16
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5001"]
 
 
 
 
 
17
 
18
 
19
 
 
12
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ ENV PYTHONPATH=/app/src
16
+
17
+ # tell Hugging Face this is the public web port
18
+ EXPOSE 80
19
+
20
+ # listen on 0.0.0.0:80 so HF can forward traffic
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
22
 
23
 
24