golemet commited on
Commit
97579b6
·
verified ·
1 Parent(s): 19cdf96

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Usar imagen oficial de Python
2
+ FROM python:3.11-slim
3
+
4
+ # Establecer directorio de trabajo
5
+ WORKDIR /app
6
+
7
+ # Copiar archivos de la app
8
+ COPY . /app
9
+
10
+ # Instalar dependencias
11
+ RUN pip install --upgrade pip
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Exponer puerto que usará FastAPI
15
+ EXPOSE 7860
16
+
17
+ # Comando para ejecutar FastAPI usando uvicorn
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]