The Free Software Media System - Server Backend & API
Docker - Build jellyfin-web
Andrew Rabert03f32978c0d7
diff --git a/Dockerfile b/Dockerfileindex ec64398b20..b9c6470590 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,6 +1,15 @@ARG DOTNET_VERSION=2.2ARG FFMPEG_VERSION=latest+FROM node:alpine as web-builder+ARG JELLYFIN_WEB_VERSION=v10.4.0+RUN apk add curl \+ && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \+ && cd jellyfin-web-* \+ && yarn install \+ && yarn build \+ && mv dist /dist+FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builderWORKDIR /repoCOPY . .@@ -21,11 +30,7 @@ RUN apt-get update \&& chmod 777 /cache /config /mediaCOPY --from=ffmpeg / /COPY --from=builder /jellyfin /jellyfin--ARG JELLYFIN_WEB_VERSION=v10.4.0-RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \- && rm -rf /jellyfin/jellyfin-web \- && mv jellyfin-web-* /jellyfin/jellyfin-web+COPY --from=web-builder /dist /jellyfin/jellyfin-web/srcEXPOSE 8096VOLUME /cache /config /mediadiff --git a/Dockerfile.arm b/Dockerfile.armindex 2b1c6bb62b..d06eeb561a 100644--- a/Dockerfile.arm+++ b/Dockerfile.arm@@ -3,6 +3,16 @@ARG DOTNET_VERSION=3.0+FROM node:alpine as web-builder+ARG JELLYFIN_WEB_VERSION=v10.4.0+RUN apk add curl \+ && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \+ && cd jellyfin-web-* \+ && yarn install \+ && yarn build \+ && mv dist /dist++FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builderWORKDIR /repoCOPY . .@@ -25,11 +35,7 @@ RUN apt-get update \&& mkdir -p /cache /config /media \&& chmod 777 /cache /config /mediaCOPY --from=builder /jellyfin /jellyfin--ARG JELLYFIN_WEB_VERSION=v10.4.0-RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \- && rm -rf /jellyfin/jellyfin-web \- && mv jellyfin-web-* /jellyfin/jellyfin-web+COPY --from=web-builder /dist /jellyfin/jellyfin-web/srcEXPOSE 8096VOLUME /cache /config /mediadiff --git a/Dockerfile.arm64 b/Dockerfile.arm64index 5ebc82ebc5..1c5de4ed0e 100644--- a/Dockerfile.arm64+++ b/Dockerfile.arm64@@ -3,6 +3,16 @@ARG DOTNET_VERSION=3.0+FROM node:alpine as web-builder+ARG JELLYFIN_WEB_VERSION=v10.4.0+RUN apk add curl \+ && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \+ && cd jellyfin-web-* \+ && yarn install \+ && yarn build \+ && mv dist /dist++FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION} as builderWORKDIR /repoCOPY . .@@ -25,11 +35,7 @@ RUN apt-get update \&& mkdir -p /cache /config /media \&& chmod 777 /cache /config /mediaCOPY --from=builder /jellyfin /jellyfin--ARG JELLYFIN_WEB_VERSION=v10.4.0-RUN curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \- && rm -rf /jellyfin/jellyfin-web \- && mv jellyfin-web-* /jellyfin/jellyfin-web+COPY --from=web-builder /dist /jellyfin/jellyfin-web/srcEXPOSE 8096VOLUME /cache /config /media