joeverfin/Dockerfile

51 lines
1.1 KiB
Text
Raw Permalink Normal View History

2024-10-22 22:36:33 +02:00
FROM alpine:latest
2024-10-22 23:16:54 +02:00
# Install dependencies
2024-10-22 22:36:33 +02:00
RUN apk --no-cache add -u -f \
wget \
curl \
unzip \
git \
debhelper \
gnupg \
devscripts \
build-essential \
mmv \
lsb-release \
zip \
libssl*.* \
liblttng-ust*\
libssl-dev \
libfontconfig*-dev \
libcurl*openssl-dev \
libfreetype-dev \
dotnet8-sdk \
nodejs \
npm \
ffmpeg
2024-10-22 23:16:54 +02:00
# Fetch jellyfin and jellyfin-web
2024-10-22 22:36:33 +02:00
WORKDIR /home/root
RUN git clone https://github.com/jellyfin/jellyfin.git
RUN mv jellyfin jellyfin-server
RUN git clone https://github.com/jellyfin/jellyfin-web.git
2024-10-22 23:16:54 +02:00
# Patch jellyfin-server
RUN sed -i '/^\s*NetworkChange\.Network/d' jellyfin-server/src/Jellyfin.Networking/Manager/NetworkManager.cs
RUN dotnet publish jellyfin-server/Jellyfin.Server --configuration Release --self-contained --runtime linux-amd64 --output /home/root/dist/ -p:DebugSymbols=false -p:DebugType=none -p:UseAppHost=true
# Build jellyfin-web
2024-10-22 22:36:33 +02:00
WORKDIR /home/root/jellyfin-web
RUN npm ci --no-audit --unsafe-perm
RUN npm run build:production
WORKDIR /home/root
2024-10-22 23:16:54 +02:00
RUN mv /home/root/jellyfin-web/dist /home/root/dist/jellyfin/jellyfin-web
2024-10-22 22:36:33 +02:00
2024-10-22 23:16:54 +02:00
ENTRYPOINT ["/home/root/dist/jellyfin/jellyfin"]
2024-10-22 22:36:33 +02:00