api_search_articles / Dockerfile
Loren's picture
Upload 2 files
73e1a21 verified
raw
history blame
365 Bytes
# Utiliser Python 3.11 slim
FROM python:3.11-slim
WORKDIR /app
# Copier le code et la base SQLite
COPY requirements.txt .
COPY app ./app
# Installer les dépendances
RUN pip install --no-cache-dir -r requirements.txt
# Exposer le port FastAPI
EXPOSE 8000
# Lancer FastAPI
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]