Skip to content

Commit

Permalink
fix: appropriate dependencies (#61)
Browse files Browse the repository at this point in the history
# Description
Fixes the gradio audio input bug introduced in #51 

# Issues
Closes #59 
Replaces #60 

# Other Notes
Breaks caching quite a bit, so if that's an issue we can create a helper
image that we use to pull in dependencies.
  • Loading branch information
mikejgray authored May 14, 2024
1 parent 61dd2bd commit 8060a93
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Stage 1: Use a base image to install ffmpeg
FROM jrottenberg/ffmpeg:4.1 as ffmpeg-base

# Stage 2: Build the final image
FROM python:3.8-slim

# Label for vendor
Expand All @@ -14,10 +10,8 @@ ARG EXTRAS
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/
# Set the ARG value as an environment variable
ENV EXTRAS=${EXTRAS}

RUN mkdir -p /neon_iris/requirements
COPY ./requirements/* /neon_iris/requirements
Expand All @@ -37,11 +31,11 @@ RUN pip install .

COPY docker_overlay/ /

# Expose port 8000 for websat
EXPOSE 8000

# Set the ARG value as an environment variable
ENV EXTRAS=${EXTRAS}
RUN apt-get update \
&& apt-get install -y libsndfile1 libasound2 ffmpeg \
&& apt-get --purge autoremove -y \
&& apt-get clean \
&& rm -rf "${HOME}"/.cache /var/lib/apt /var/log/{apt,dpkg.log}

# Create a non-root user with a home directory and change ownership of necessary directories

Expand Down

0 comments on commit 8060a93

Please sign in to comment.