Spaces:
Runtime error
Runtime error
Download Dockerfile from LevinAleksey/Neuron-MCP-Core: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/LevinAleksey/Neuron-MCP-Core/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LevinAleksey/Neuron-MCP-Core/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LevinAleksey/Neuron-MCP-Core/resolve/main/Dockerfile
667 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Устанавливаем git (нужен иногда для зависимостей) | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY main.py . | |
| # Создаем папку для базы данных и даем права на запись (HF запускает юзера 1000) | |
| RUN mkdir -p /app/chroma_db_cache && chmod 777 /app/chroma_db_cache | |
| # Открываем порт 7860 | |
| EXPOSE 7860 | |
| # Запускаем | |
| CMD ["fastmcp", "run", "main.py", "--transport", "sse", "--port", "7860", "--host", "0.0.0.0"] |