Spaces:
Sleeping
Sleeping
Download Dockerfile from muhammadghiffari/TradeFlowAI: direct link, hf CLI and curl.
- Browser
- Download file 776 Bytes
-
https://huggingface.co/spaces/muhammadghiffari/TradeFlowAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/muhammadghiffari/TradeFlowAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muhammadghiffari/TradeFlowAI/resolve/main/Dockerfile
776 Bytes
| FROM python:3.13-slim-bookworm | |
| WORKDIR /app | |
| # Fix Debian GPG key rotation, install uv, and system dependencies | |
| RUN pip install uv && \ | |
| apt-get update -o Acquire::AllowInsecureRepositories=true 2>/dev/null; \ | |
| apt-get install -y --allow-unauthenticated debian-archive-keyring 2>/dev/null; \ | |
| apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libmagic1 \ | |
| curl \ | |
| redis-server \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install dependencies using uv (lockfile ensures deterministic resolution) | |
| COPY pyproject.toml uv.lock ./ | |
| RUN uv pip install --system -r pyproject.toml | |
| # Copy source code and start script | |
| COPY . . | |
| RUN chmod +x start.sh | |
| # Run via start.sh (starts Redis, Celery, and Uvicorn) | |
| CMD ["./start.sh"] | |