Download Dockerfile from Frankenstein-Labs/Cortex-0: direct link, hf CLI and curl.
- Browser
- Download file 998 Bytes
-
https://huggingface.co/Frankenstein-Labs/Cortex-0/resolve/main/Dockerfile
- Command line
-
hf download hf://Frankenstein-Labs/Cortex-0/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/Frankenstein-Labs/Cortex-0/resolve/main/Dockerfile
998 Bytes
| # Dockerfile — Cortex-0 (Phase 12) | |
| # | |
| # Image de l'API FastAPI + de la démo Gradio. Contrainte du cahier des charges : | |
| # AUCUN poids pré-entraîné n'est téléchargé dans l'image. Seuls nos propres | |
| # checkpoints (facultatifs, via CORTEX_CHECKPOINT monté au runtime) sont chargés. | |
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=8000 | |
| WORKDIR /app | |
| # Dépendances système minimales (I/O audio éventuelle). | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libsndfile1 ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY . . | |
| # HF_TOKEN / CORTEX_CHECKPOINT fournis à l'exécution, jamais cuits dans l'image. | |
| ENV HF_TOKEN="" \ | |
| CORTEX_CHECKPOINT="" | |
| EXPOSE 8000 7860 | |
| # Par défaut : l'API FastAPI. Pour la démo Gradio : | |
| # docker run -p 7860:7860 ... python app/gradio_app.py | |
| CMD ["python", "-m", "src.api"] | |