Download Dockerfile from MasterDee/RealChar: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/MasterDee/RealChar/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MasterDee/RealChar/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MasterDee/RealChar/resolve/main/Dockerfile
723 Bytes
| FROM python:slim | |
| # Install system-level dependencies | |
| RUN apt-get update && apt-get install -y build-essential portaudio19-dev libffi-dev libssl-dev ffmpeg | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR /realtime_ai_character | |
| # Install Python dependencies | |
| COPY requirements.txt /realtime_ai_character | |
| RUN pip install --no-cache-dir --upgrade -r /realtime_ai_character/requirements.txt | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| # Copy the project files | |
| COPY --chown=user ./ $HOME/app | |
| # Expose 7860. port from the docker image. | |
| EXPOSE 7860 | |
| # Make the entrypoint script executable | |
| RUN chmod +x $HOME/app/entrypoint.sh | |
| # Run the application | |
| CMD ["/bin/sh", "/home/user/app/entrypoint.sh"] | |