Spaces:
Sleeping
Sleeping
Download Dockerfile from DevForML/Multi_Agent_System: direct link, hf CLI and curl.
- Browser
- Download file 575 Bytes
-
https://huggingface.co/spaces/DevForML/Multi_Agent_System/resolve/bf896e2212e503e5b0bfb6ce67c76ecc285a6b82/Dockerfile
- Command line
-
hf download hf://spaces/DevForML/Multi_Agent_System@bf896e2212e503e5b0bfb6ce67c76ecc285a6b82/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DevForML/Multi_Agent_System/resolve/bf896e2212e503e5b0bfb6ce67c76ecc285a6b82/Dockerfile
575 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y gcc | |
| # Install deps | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| # Copy your code | |
| COPY . /app | |
| # Create and set perms on application folders | |
| RUN mkdir -p /app/cache /app/uploads /app/data /app/chats \ | |
| && chmod -R 755 /app/cache /app/uploads /app/data /app/chats \ | |
| && chmod -R 755 /app | |
| 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"] | |