Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Dockerfile
README.md
23 changes: 19 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,34 @@ ENV THREADFIN_BIN=/home/threadfin/bin \
# Set working directory
WORKDIR $THREADFIN_HOME

# Arguments to add the jellyfin repository
ARG TARGETARCH
ARG OS_VERSION=ubuntu
ARG OS_CODENAME=noble

# Install dependencies in a single layer
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
ffmpeg \
vlc \
tzdata && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
tzdata \
gnupg \
apt-transport-https && \
mkdir -p $THREADFIN_BIN $THREADFIN_CONF $THREADFIN_TEMP $THREADFIN_HOME/cache && \
chmod a+rwX $THREADFIN_CONF $THREADFIN_TEMP && \
sed -i 's/geteuid/getppid/' /usr/bin/vlc
sed -i 's/geteuid/getppid/' /usr/bin/vlc && \
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key \
| gpg --dearmor -o /etc/apt/trusted.gpg.d/debian-jellyfin.gpg && \
echo "deb [arch=${TARGETARCH}] https://repo.jellyfin.org/master/${OS_VERSION} ${OS_CODENAME} main" > /etc/apt/sources.list.d/jellyfin.list && \
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests --yes \
jellyfin-ffmpeg7 && \
apt-get remove gnupg apt-transport-https --yes && \
apt-get clean autoclean --yes && \
apt-get autoremove --yes && \
rm -rf /var/cache/apt/archives* /var/lib/apt/lists/*

# Copy built binary from builder image
COPY --from=builder /app/threadfin $THREADFIN_BIN/
Expand Down