Spaces:
Sleeping
Sleeping
Download Dockerfile from ShahirDevs/rl-agent: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/ShahirDevs/rl-agent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ShahirDevs/rl-agent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ShahirDevs/rl-agent/resolve/main/Dockerfile
303 Bytes
| # Use Python | |
| FROM python:3.11 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy all files | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port (HuggingFace uses 7860) | |
| EXPOSE 7860 | |
| # Run your API | |
| CMD ["uvicorn", "fast:app", "--host", "0.0.0.0", "--port", "7860"] |