Download Dockerfile from maxcasado/POC2PROD: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/maxcasado/POC2PROD/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/maxcasado/POC2PROD/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/maxcasado/POC2PROD/resolve/main/Dockerfile
437 Bytes
| # Dockerfile | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # (optionnel) quelques deps système | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Hugging Face lira app_port: 8501, donc on écoute sur 8501 | |
| ENV PORT=8501 | |
| EXPOSE 8501 | |
| CMD ["bash", "start.sh"] | |