AxonIQ-Testing / Dockerfile
ZeroNinerOne's picture
Upload 14 files
a4f8c46 verified
Raw History Blame Contribute Delete
717 Bytes
FROM python:3.12-slim
RUN apt-get update && apt-get install -y gcc g++ git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python3 build_spacy.py
# /data = HuggingFace persistent storage bucket (mounted at runtime)
# Everything user-related lives here and NEVER gets deleted on restart
RUN mkdir -p /data/db /data/chroma /data/backups
ENV PORT=7860
ENV HOST=0.0.0.0
ENV WORKERS=1
ENV SPACY_MODEL=/app/en_model
ENV NEUROCHECK_DB=/data/db/neurocheck.db
ENV CHROMA_DB_PATH=/data/chroma
ENV PYTHONPATH=/app
EXPOSE 7860
CMD ["python3", "-m", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860", "--app-dir", "/app"]