| FROM ghcr.io/vectorize-io/hindsight:latest |
|
|
| |
| ENV HINDSIGHT_API_HOST=0.0.0.0 |
| ENV HINDSIGHT_API_PORT=7860 |
| ENV HINDSIGHT_API_LOG_LEVEL=info |
| ENV HINDSIGHT_API_MCP_ENABLED=true |
| ENV HINDSIGHT_API_RETAIN_EXTRACTION_MODE=concise |
| ENV HINDSIGHT_API_RETAIN_EXTRACT_CAUSAL_LINKS=true |
| ENV HINDSIGHT_API_RERANKER_PROVIDER=flashrank |
| ENV HINDSIGHT_API_TENANT_EXTENSION=hindsight_api.extensions.builtin.tenant:ApiKeyTenantExtension |
|
|
| |
| |
| |
| |
|
|
| |
| ENV HINDSIGHT_DATA_DIR=/data/hindsight |
|
|
| |
| |
| |
| ENV BACKUP_INTERVAL_SECONDS=21600 |
|
|
| |
| USER root |
| RUN pip install --no-cache-dir huggingface_hub>=0.27.0 |
| RUN mkdir -p /data/hindsight && chown hindsight:hindsight /data/hindsight |
|
|
| |
| COPY scripts/ /opt/backup/ |
| RUN chmod +x /opt/backup/entrypoint.sh |
|
|
| |
| USER hindsight |
|
|
| EXPOSE 7860 |
|
|
| HEALTHCHECK --interval=30s --timeout=10s --retries=5 --start-period=300s \ |
| CMD curl -f http://localhost:7860/health || exit 1 |
|
|
| |
| ENTRYPOINT ["/opt/backup/entrypoint.sh"] |
| |