Spaces:
Runtime error
Runtime error
Download backend/Dockerfile from IDKHowToCodeFr/tinyml-backend: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/spaces/IDKHowToCodeFr/tinyml-backend/resolve/main/backend/Dockerfile
- Command line
-
hf download hf://spaces/IDKHowToCodeFr/tinyml-backend/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/IDKHowToCodeFr/tinyml-backend/resolve/main/backend/Dockerfile
444 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install build dependencies for scientific libraries | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source code | |
| COPY . . | |
| # Expose port and run | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |