usermma commited on
Commit
36565b5
·
verified ·
1 Parent(s): 94da040

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN pip install --no-cache-dir \
6
+ torch \
7
+ transformers \
8
+ safetensors \
9
+ huggingface_hub \
10
+ fastapi \
11
+ uvicorn \
12
+ jinja2
13
+
14
+ COPY app.py .
15
+ COPY index.html .
16
+
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]