Zoro-147 commited on
Commit
7da52a0
·
verified ·
1 Parent(s): 2b884cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -11
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY . /app
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
- ENV PORT=8000
9
- EXPOSE $PORT
10
-
11
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY . /app
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ # Hugging Face requires port 7860
9
+ EXPOSE 7860
10
+
11
+ CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860"]