File size: 681 Bytes
240b9b1
 
 
 
dd8f20f
 
 
 
 
 
 
 
240b9b1
 
dd8f20f
 
 
 
 
240b9b1
 
 
dd8f20f
240b9b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]