Spaces:
Sleeping
Sleeping
Download Dockerfile from Scikitlearn10801/test_env: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/spaces/Scikitlearn10801/test_env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Scikitlearn10801/test_env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Scikitlearn10801/test_env/resolve/main/Dockerfile
463 Bytes
| # Use a highly optimized, lightweight Python image | |
| FROM python:3.10-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application files | |
| COPY . . | |
| # Hugging Face Spaces require port 7860 | |
| EXPOSE 7860 | |
| # Start the FastAPI server using Uvicorn | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] |