Spaces:
Sleeping
Sleeping
Download Dockerfile from sdsdsdghfgf/bbbb: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/spaces/sdsdsdghfgf/bbbb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sdsdsdghfgf/bbbb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sdsdsdghfgf/bbbb/resolve/main/Dockerfile
422 Bytes
| # Use official Python base image | |
| FROM python:3.9-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy requirements file | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Expose the port (will be overridden by PORT environment variable if set) | |
| EXPOSE 7860 | |
| # Command to run the Flask app | |
| CMD ["python", "2api.py"] | |