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

fix: appropriate dependencies #61

Merged
merged 1 commit into from
May 14, 2024
Merged
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
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/ /

NeonDaniel marked this conversation as resolved.
Show resolved Hide resolved
# 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
Loading