Spaces:
Sleeping

Speech2Face / Dockerfile
ProgramComputer's picture
Super-squash branch 'main' using huggingface_hub
5a5e72e
Raw History Blame Contribute Delete
789 Bytes
FROM python:3.10.12-bookworm@sha256:bac3a0e0d16125977e351c861e2f4b12ecafeaa6f72431dc970d0b9155103232
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg libgl1 libsm6 libxext6 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --uid 1000 --user-group user
USER user
ENV HOME=/home/user \
PATH=/home/user/venv/bin:$PATH \
HF_HOME=/home/user/.cache/huggingface
RUN python -m venv /home/user/venv \
&& mkdir -p /home/user/.cache/huggingface /home/user/app
WORKDIR /home/user/app
COPY --chown=user:user requirements.txt .
RUN pip install --no-cache-dir --require-hashes -r requirements.txt
COPY --chown=user:user . .
ENV GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 GRADIO_ANALYTICS_ENABLED=False
EXPOSE 7860
CMD ["python", "app.py"]