osint-api-66m / Dockerfile
Watchhrr's picture
Upload Dockerfile with huggingface_hub
4741b71 verified
Raw
History Blame Contribute Delete
540 Bytes
FROM python:3.9
WORKDIR /code
RUN apt-get update && apt-get install -y git-lfs && git lfs install
RUN pip install --no-cache-dir fastapi uvicorn huggingface_hub
COPY . .
# Startup par file download logic (Environment variable se token uthayega)
RUN python -c "import os; from huggingface_hub import hf_hub_download; hf_hub_download(repo_id='Watchhrr/osint-db-storage', filename='osint_master_66m.db', repo_type='dataset', local_dir='./', token=os.environ.get('HF_TOKEN'))"
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]