@@ -4,7 +4,7 @@ WORKDIR /frontend
44COPY ./frontend ./
55RUN if [ ! -d /frontend/exported ]; then yarn install --production --prefer-offline --frozen-lockfile && yarn run generate; fi
66
7- FROM alpine:edge
7+ FROM debian:13
88
99COPY --from=composer/composer:2-bin /composer /opt/bin/composer
1010
@@ -23,10 +23,10 @@ ENV PACKAGES=""
2323# Setup the required environment.
2424#
2525RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone && \
26- ARCH=`uname -m` && if [ "${ARCH}" == "x86_64" ]; then PACKAGES= "${PACKAGES} intel-media-driver" ; fi && \
27- apk add --no-cache bash icu-data-full nano curl procps net-tools iproute2 ffmpeg \
28- shadow sqlite redis tzdata gettext ca-certificates nss mailcap libcap fontconfig ttf-freefont font-noto \
29- terminus-font font-dejavu libva-utils ${PACKAGES} && \
26+ ARCH="$(dpkg --print-architecture)" && \
27+ if [ "$ARCH" = "amd64" ]; then PACKAGES= "${PACKAGES} intel-media-va-driver i965-va-driver libmfx-gen1.2" ; fi && \
28+ apt update && apt install -y --no-install-recommends nano curl procps net-tools iproute2 tzdata sqlite3 \
29+ redis gettext ca-certificates fontconfig fonts-freefont-ttf fonts-noto fonts-terminus fonts-dejavu vainfo ${PACKAGES} && \
3030 # Delete unused users change users group gid to allow unRaid users to use gid 100 \
3131 deluser redis && groupmod -g 1588787 users && \
3232 # Create our own user. \
@@ -37,6 +37,8 @@ RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezo
3737# Copy frankenphp (caddy+php) to the container.
3838#
3939COPY --chown=app:app --from=ghcr.io/arabcoders/franken_builder:latest /usr/local/bin/frankenphp /opt/bin/
40+ COPY --chown=app:app --from=ghcr.io/arabcoders/jellyfin-ffmpeg /usr/bin/ffmpeg /usr/bin/ffmpeg
41+ COPY --chown=app:app --from=ghcr.io/arabcoders/jellyfin-ffmpeg /usr/bin/ffprobe /usr/bin/ffprobe
4042
4143# Copy source code to container.
4244COPY ./ /opt/app
@@ -51,7 +53,6 @@ RUN echo '' && \
5153 # create /usr/bin/php that points to /opt/bin/frankenphp php-cli "$@" \
5254 echo '#!/bin/sh' > /usr/bin/php && \
5355 echo 'exec /opt/bin/frankenphp php-cli "$@"' >> /usr/bin/php && chmod +x /usr/bin/php && \
54- ln -s /usr/bin/nano /usr/bin/pico && \
5556 # Create basic directories \
5657 bash -c 'umask 0000 && mkdir -p /temp_data/ /opt/{app,bin,config} /config/{backup,cache,config,db,debug,logs,webhooks,profiler}' && \
5758 # Link console. \
0 commit comments