Spaces:
Sleeping
Sleeping
Download Dockerfile from ProgramComputer/Speech2Face: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/spaces/ProgramComputer/Speech2Face/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ProgramComputer/Speech2Face/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ProgramComputer/Speech2Face/resolve/main/Dockerfile
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"] | |