FlorianSC/agritech-interface
0
1FROM python:3.12-slim2 3WORKDIR /app4 5# Installation des outils nécessaires6RUN apt-get update && apt-get install -y curl git && rm -rf /var/lib/apt/lists/*7 8# Installation de Poetry9RUN curl -sSL https://install.python-poetry.org | python3 -10ENV PATH="/root/.local/bin:$PATH"11 12# Copie des fichiers de dépendances13COPY pyproject.toml poetry.lock* ./14 15# Installation des librairies16RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root17 18# Copie du reste du code19COPY . .20 21# Port exposé par Hugging Face22EXPOSE 786023 24# Script de lancement25CMD uvicorn app:app --host 0.0.0.0 --port 8000 & streamlit run streamlit.py --server.port 7860 --server.address 0.0.0.0