stvnnnnnn commited on
Commit
21e42d7
·
verified ·
1 Parent(s): 6b01669

Dockerfile creado

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONUNBUFFERED=1 HF_HOME=/root/.cache/huggingface
4
+
5
+ WORKDIR /app
6
+
7
+ COPY requirements.txt /app/
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # PyTorch CPU (sin CUDA)
11
+ RUN pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu torch==2.3.1
12
+
13
+ COPY app.py /app/app.py
14
+
15
+ EXPOSE 7860
16
+ CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]