Spaces:
Sleeping
Sleeping
Download Dockerfile from abhojulius/CoachPlugin: direct link, hf CLI and curl.
- Browser
- Download file 903 Bytes
-
https://huggingface.co/spaces/abhojulius/CoachPlugin/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abhojulius/CoachPlugin/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abhojulius/CoachPlugin/resolve/main/Dockerfile
903 Bytes
| # Dockerfile | |
| FROM python:3.10-slim | |
| # Setze das Arbeitsverzeichnis im Container | |
| WORKDIR /app # Dies ist das Verzeichnis, in dem uvicorn später ausgeführt wird | |
| # Installiere Systemabhängigkeiten | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| cmake \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Kopiere NUR die requirements.txt zuerst, um Docker Caching zu nutzen | |
| COPY requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Kopiere den Inhalt deines lokalen 'app'-Unterordners in das '/app'-Verzeichnis des Containers | |
| COPY ./app/ . | |
| # Jetzt liegt main.py direkt unter /app/main.py im Container | |
| # ENV PYTHONPATH "${PYTHONPATH}:/app" # Sollte jetzt nicht mehr nötig sein, da WORKDIR /app ist | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |