namish10 commited on
Commit
4f50554
·
verified ·
1 Parent(s): f236e74

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN pip install --no-cache-dir gradio fastapi uvicorn pydantic numpy httpx
6
+
7
+ COPY . .
8
+
9
+ ENV PYTHONUNBUFFERED=1
10
+ ENV PORT=7860
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]