Spaces:
Sleeping
Sleeping
Download Dockerfile from rahularorarahul/ExtraaLearn: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/rahularorarahul/ExtraaLearn/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rahularorarahul/ExtraaLearn/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rahularorarahul/ExtraaLearn/resolve/main/Dockerfile
410 Bytes
| # Use a lightweight Python base image | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| 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 code | |
| COPY . . | |
| # Expose the port that Flask runs on | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["python", "app.py"] |