jimytech commited on
Commit
a375dee
·
verified ·
1 Parent(s): 61fb36a

Creación del Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt ./
6
+ COPY rag_api.py ./
7
+
8
+ # Actualizar PIP
9
+ RUN pip install --upgrade pip
10
+
11
+ # Instala las dependencias
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ EXPOSE 7860
15
+
16
+ # Comando CRÍTICO: Usa el nuevo nombre "rag_api:app"
17
+ CMD ["uvicorn", "rag_api:app", "--host", "0.0.0.0", "--port", "7860"]