Spaces:
Runtime error
Runtime error
Download Dockerfile from Huzaifa367/summay: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/Huzaifa367/summay/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Huzaifa367/summay/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Huzaifa367/summay/resolve/main/Dockerfile
602 Bytes
| # Use the official Python image | |
| FROM python:3.9-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements file and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Expose necessary ports (if applicable) | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["python", "app.py"] | |