Spaces:
Build error
Build error
Download Dockerfile from Gianzfx/SherlockOSINT: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/Gianzfx/SherlockOSINT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Gianzfx/SherlockOSINT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Gianzfx/SherlockOSINT/resolve/main/Dockerfile
1.13 kB
| FROM python:3.10-slim | |
| # Install system dependencies, curl, and Bun | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| gnupg \ | |
| unzip \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Bun | |
| RUN curl -fsSL https://bun.sh/install | bash | |
| ENV PATH="/root/.bun/bin:${PATH}" | |
| WORKDIR /app | |
| # Copy codebase | |
| COPY . . | |
| # Download and install PhoneInfoga binary directly (avoids Git size limits) | |
| RUN curl -L https://github.com/sundowndev/phoneinfoga/releases/download/v2.10.8/phoneinfoga_Linux_x86_64.tar.gz -o phoneinfoga.tar.gz && \ | |
| tar -xzf phoneinfoga.tar.gz && \ | |
| rm phoneinfoga.tar.gz && \ | |
| chmod +x phoneinfoga | |
| # Install python packages using uv in system python context | |
| RUN pip install --no-cache-dir uv && \ | |
| uv pip install --system fastapi uvicorn && \ | |
| uv pip install --system . | |
| # Build Vite/React frontend | |
| RUN cd web_app/frontend && \ | |
| bun install && \ | |
| bun run build | |
| # Expose port for Hugging Face Spaces (defaults to 7860) | |
| EXPOSE 7860 | |
| # Run FastAPI backend server | |
| CMD ["uvicorn", "web_app.backend.server:app", "--host", "0.0.0.0", "--port", "7860"] | |