Spaces:
Running
Running
Download Dockerfile from RAc1928/second-brain-env: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/spaces/RAc1928/second-brain-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RAc1928/second-brain-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RAc1928/second-brain-env/resolve/main/Dockerfile
812 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends curl git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy everything from root into /app | |
| COPY . /app | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir \ | |
| openenv-core \ | |
| fastapi \ | |
| "uvicorn[standard]" \ | |
| pydantic \ | |
| websockets \ | |
| openai \ | |
| python-dotenv | |
| # Set PYTHONPATH so all imports resolve correctly | |
| ENV PYTHONPATH="/app:/app/server" | |
| ENV TASK_NAME=note_categorization | |
| ENV PORT=8000 | |
| EXPOSE 8000 8001 8002 8003 | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD curl -f http://localhost:8000/health || exit 1 | |
| # Make start script executable & run | |
| RUN chmod +x /app/start.sh | |
| CMD ["/app/start.sh"] |