Skip to content

Commit

Permalink
adjust base image to use a venv
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Sep 27, 2024
1 parent fb6eebc commit 5d13401
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ RUN set -x \
RUN mkdir -p /usr/local/bin/widevine_cdm
COPY widevine_cdm/* /usr/local/bin/widevine_cdm/

# Configure runtime environmental variables
ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2"
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /opt/venv

# Upgrade pip + Install uv
RUN pip install --upgrade pip \
&& pip install uv==0.2.27

# Configure runtime environmental variables
ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2"
ENV UV_SYSTEM_PYTHON="1"

LABEL \
org.opencontainers.image.title="Music Assistant Base Image" \
Expand Down

0 comments on commit 5d13401

Please sign in to comment.