kronos-api / Dockerfile
jeanno31's picture
Update Dockerfile
dd8f20f verified
FROM python:3.10-slim
WORKDIR /app
# 1. Installer git pour pouvoir cloner le repo
RUN apt-get update && apt-get install -y git
# 2. Cloner TOUT le dépôt Kronos directement dans notre dossier de travail
# Cela va créer le fameux dossier "model" avec tous ses fichiers
RUN git clone https://github.com/shiyu-coder/Kronos.git .
# 3. Installer les dépendances officielles de Kronos
RUN pip install --no-cache-dir -r requirements.txt
# 4. Installer les librairies pour notre API
RUN pip install --no-cache-dir fastapi uvicorn pydantic
# 5. Copier notre script d'API
COPY main.py .
EXPOSE 7860
# Lancer l'API
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]