gemma / Dockerfile
luck210's picture
Update Dockerfile
5578867 verified
raw
history blame
487 Bytes
# Image de base Python
FROM python:3.9-slim
# Installer les dépendances système
RUN apt-get update && apt-get install -y gcc libffi-dev libnacl-dev && apt-get clean
# Définir le répertoire de travail
WORKDIR /app
# Copier les fichiers nécessaires
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# Exposer le port utilisé par FastAPI
EXPOSE 7860
# Lancer l'application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]