FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 ENV TOKENIZERS_PARALLELISM=false ENV HF_HOME=/tmp/huggingface ENV VBPT_RUNTIME_BACKEND=reference ENV VBPT_DEVICE=cpu ENV DEFAULT_MODEL=bachvnju-vbpt-1-0.5B RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 git && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/requirements.txt RUN pip install --no-cache-dir --upgrade pip setuptools wheel RUN pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu torch==2.5.1 torchvision==0.20.1 RUN pip install --no-cache-dir -r /app/requirements.txt COPY app.py /app/app.py EXPOSE 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]