Spaces:
Sleeping
Sleeping
Download Dockerfile from RL-Project/392-RL-Final-Project: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/RL-Project/392-RL-Final-Project/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RL-Project/392-RL-Final-Project/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RL-Project/392-RL-Final-Project/resolve/main/Dockerfile
332 Bytes
| # Use a lightweight Python base | |
| FROM python:3.10-slim | |
| # Set working directory in container | |
| WORKDIR /app | |
| # Copy and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your app code | |
| COPY . . | |
| # Expose the port the app runs on | |
| EXPOSE 7860 | |
| # Run your app | |
| CMD ["python", "app.py"] | |