2025-09-14 10:51:20 +02:00
|
|
|
FROM python:3.10-slim
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2025-09-14 11:02:25 +02:00
|
|
|
# Installer les dépendances système nécessaires
|
2025-09-14 10:51:20 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
|
curl \
|
|
|
|
|
git \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
# Installer Docker CLI
|
|
|
|
|
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
|
|
|
|
|
sh get-docker.sh && \
|
|
|
|
|
rm get-docker.sh
|
|
|
|
|
|
|
|
|
|
# Cloner le projet CodeGenerator
|
|
|
|
|
RUN git clone https://github.com/kagnlp/CodeGenerator.git .
|
|
|
|
|
|
|
|
|
|
# Installer les dépendances Python
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
# Exposer le port de l'application
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
2025-09-14 11:02:25 +02:00
|
|
|
# Commande de démarrage correcte selon la documentation
|
2025-09-14 11:07:06 +02:00
|
|
|
CMD ["/bin/bash"]
|