mercybabs commited on
Commit
84039f6
·
1 Parent(s): 55270d6

added uvicorn

Browse files
Files changed (2) hide show
  1. Dockerfile +6 -2
  2. huggingface.yaml +0 -2
Dockerfile CHANGED
@@ -19,11 +19,15 @@ RUN apt-get update && apt-get install -y \
19
  # Install Python dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Expose the port Streamlit runs on
23
- EXPOSE 8501
24
 
 
 
25
 
26
  # ENTRYPOINT ["bash", "-c", "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0"]
27
 
 
 
28
  CMD ["--host", "0.0.0.0", "--port", "7860"]
29
 
 
19
  # Install Python dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # # Expose the port Streamlit runs on
23
+ # EXPOSE 8501
24
 
25
+ # Install uvicorn
26
+ RUN pip install uvicorn
27
 
28
  # ENTRYPOINT ["bash", "-c", "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0"]
29
 
30
+ ENTRYPOINT ["uvicorn", "main:app"]
31
+
32
  CMD ["--host", "0.0.0.0", "--port", "7860"]
33
 
huggingface.yaml DELETED
@@ -1,2 +0,0 @@
1
- env:
2
- OPENAI_API_KEY: "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"