Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile for the new voice cloning system. #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
FROM debian:stable
FROM python:3.10-bookworm

# Install system packages
RUN apt update && apt install -y git pip
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y \
ffmpeg


# Create non-root user
RUN useradd -m -d /bark bark
RUN useradd -m -d /bark bark

# Run as new user
USER bark
WORKDIR /bark
# Copy project files
COPY ./ /bark/bark-gui

# Clone git repo
RUN git clone https://github.com/C0untFloyd/bark-gui

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, where sources supposed to be?

# Correct permission for non-root user
RUN chown bark:bark -R /bark/bark-gui

# Switch to git directory
# Run as new user
USER bark
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
RUN pip install --no-cache-dir . &&\
pip install --no-cache-dir -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
Expand Down