From 6f19acdabd76de0e0ce07f88f35da7e0f4afead2 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 13 May 2024 16:31:19 -0700 Subject: [PATCH] Patch that fixes sound input error --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ee3a8b..6528e6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Use a base image to install ffmpeg -FROM jrottenberg/ffmpeg:4.1 as ffmpeg-base +#FROM jrottenberg/ffmpeg:4.1 as ffmpeg-base # Stage 2: Build the final image FROM python:3.8-slim @@ -15,15 +15,16 @@ ENV OVOS_CONFIG_BASE_FOLDER=neon \ OVOS_CONFIG_FILENAME=neon.yaml \ XDG_CONFIG_HOME=/config -# Copy ffmpeg binaries from the ffmpeg-base stage -COPY --from=ffmpeg-base /usr/local/bin/ /usr/local/bin/ -COPY --from=ffmpeg-base /usr/local/lib/ /usr/local/lib/ +## Copy ffmpeg binaries from the ffmpeg-base stage +#COPY --from=ffmpeg-base /usr/local/bin/ /usr/local/bin/ +#COPY --from=ffmpeg-base /usr/local/lib/ /usr/local/lib/ RUN mkdir -p /neon_iris/requirements COPY ./requirements/* /neon_iris/requirements RUN pip install wheel && pip install -r /neon_iris/requirements/requirements.txt RUN if [ "$EXTRAS" = "gradio" ]; then \ + apt update && apt install -y libsndfile libasound ffmpeg; \ pip install -r /neon_iris/requirements/gradio.txt; \ elif [ "$EXTRAS" = "web_sat" ]; then \ pip install -r /neon_iris/requirements/web_sat.txt; \