Spaces:
Sleeping
Sleeping
Download Dockerfile from singoojiang/test3: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/spaces/singoojiang/test3/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/singoojiang/test3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/singoojiang/test3/resolve/main/Dockerfile
779 Bytes
| FROM debian:stable | |
| # Install system packages | |
| RUN apt update && apt install -y git pip | |
| # Create non-root user | |
| RUN useradd -m -d /bark bark | |
| # Run as new user | |
| USER bark | |
| WORKDIR /bark | |
| # Clone git repo | |
| RUN git clone https://github.com/C0untFloyd/bark-gui | |
| # Switch to git directory | |
| WORKDIR /bark/bark-gui | |
| # Append pip bin path to PATH | |
| ENV PATH=$PATH:/bark/.local/bin | |
| # Install dependancies | |
| RUN pip install . | |
| RUN pip install -r requirements.txt | |
| # List on all addresses, since we are in a container. | |
| RUN sed -i "s/server_name: ''/server_name: 0.0.0.0/g" ./config.yaml | |
| # Suggested volumes | |
| VOLUME /bark/bark-gui/assets/prompts/custom | |
| VOLUME /bark/bark-gui/models | |
| VOLUME /bark/.cache/huggingface/hub | |
| # Default port for web-ui | |
| EXPOSE 7860/tcp | |
| # Start script | |
| CMD python3 webui.py | |