Cleanup dockerfile a bit.

This commit is contained in:
SergeantPanda 2025-12-23 17:04:09 -06:00
parent daa919c764
commit 48ebaffadd

View file

@ -16,7 +16,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libpcre3 libpcre3-dev libpq-dev procps \
build-essential gcc pciutils \
nginx streamlink comskip \
vlc-bin vlc-plugin-base vlc-plugin-access-extra \
vlc-bin vlc-plugin-base \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# --- Create Python virtual environment ---
@ -26,11 +26,6 @@ RUN python3.13 -m venv $VIRTUAL_ENV && $VIRTUAL_ENV/bin/pip install --upgrade pi
COPY requirements.txt /tmp/requirements.txt
RUN $VIRTUAL_ENV/bin/pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt
# --- Configure VLC for headless operation ---
# Set VLC environment variables for headless operation
ENV PULSE_SERVER=none \
DBUS_SESSION_BUS_ADDRESS=/dev/null
# --- Set up Redis 7.x ---
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | \