File size: 355 Bytes
998fc6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.13-slim

WORKDIR /code

# Installer uv
RUN pip install uv

# Copier les fichiers nécessaires
COPY pyproject.toml uv.lock ./

# Installer les dépendances via uv
RUN uv sync --frozen

# Copier le reste du code
COPY . .

EXPOSE 7860

# Lancer FastAPI via uv
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]