Spaces:
Sleeping
Sleeping
Download Dockerfile from DevForML/Multi_Agent_System: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/DevForML/Multi_Agent_System/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DevForML/Multi_Agent_System/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DevForML/Multi_Agent_System/resolve/main/Dockerfile
652 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # 1) Install OS + Python deps | |
| RUN apt-get update && apt-get install -y gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| # 2) Copy your application (creates /app/chats if it's in your repo) | |
| COPY . /app | |
| # 3) Ensure runtime dirs exist & are writable | |
| RUN mkdir -p /app/cache /app/uploads /app/data /app/chats \ | |
| && chmod -R 777 /app/cache /app/uploads /app/data /app/chats | |
| ENV FLASK_APP=app.py \ | |
| FLASK_ENV=production | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-k", "eventlet", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "600", "app:app"] | |