Spaces:
Runtime error
Runtime error
Download Dockerfile from Darshankumarr03/Swift-Query: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Darshankumarr03/Swift-Query/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/Dockerfile
492 Bytes
| FROM python:3.10 | |
| WORKDIR /app | |
| # Install system dependencies if needed (e.g., for some python packages) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Expose the port that the application listens on | |
| EXPOSE 7860 | |
| # Command to run the application | |
| # Assuming main.py has the Flask app instance 'app' | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"] | |