TalkingHeadBenchEnv / Dockerfile
elix3r's picture
Upload folder using huggingface_hub
f755447 verified
Raw
History Blame Contribute Delete
544 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY server/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt \
--extra-index-url https://download.pytorch.org/whl/cpu
COPY . /app
ENV PYTHONPATH=/app
ENV API_BASE_URL=""
ENV MODEL_NAME=""
ENV HF_TOKEN=""
EXPOSE 8000
ENV ENABLE_WEB_INTERFACE=true
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]