Spaces:
Sleeping
Sleeping
Download Dockerfile from DevForML/Multi_Agent_System: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/spaces/DevForML/Multi_Agent_System/resolve/69685381e4e2d7e628e57b073e2749625e5d68bc/Dockerfile
- Command line
-
hf download hf://spaces/DevForML/Multi_Agent_System@69685381e4e2d7e628e57b073e2749625e5d68bc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DevForML/Multi_Agent_System/resolve/69685381e4e2d7e628e57b073e2749625e5d68bc/Dockerfile
837 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.11-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y gcc | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Create necessary directories with appropriate permissions | |
| RUN mkdir -p /app/cache /app/uploads /app/data /app/chats && chmod -R 777 /app/cache /app/uploads /app/data /app/chats | |
| RUN chmod -R 777 /app | |
| # Copy the application code | |
| COPY . . | |
| # Set environment variables | |
| ENV FLASK_APP=app.py \ | |
| FLASK_ENV=production | |
| EXPOSE 7860 | |
| # Run the application using Gunicorn | |
| CMD ["gunicorn", "-k", "eventlet", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "600", "app:app"] |