From ffc3100634b2979be65ffb1cf91758d1c5a33c50 Mon Sep 17 00:00:00 2001 From: meteokr Date: Mon, 26 Jun 2023 13:49:33 -0700 Subject: [PATCH] Update Dockerfile for the new voice cloning system. --- Dockerfile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00b1196a..1b05934e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 +# 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