Spaces:
Runtime error
Runtime error
File size: 779 Bytes
627c134 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
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
|