The Free Software Media System - Server Backend & API
Use 'yarn build:production' instead of 'yarn:build' everywhere
Mark Monteiro6894602dab70
diff --git a/.ci/azure-pipelines-main.yml b/.ci/azure-pipelines-main.ymlindex e33ab72f25..5cda81bd5e 100644--- a/.ci/azure-pipelines-main.yml+++ b/.ci/azure-pipelines-main.yml@@ -43,7 +43,7 @@ jobs:displayName: "Build Web Client"condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')), eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))inputs:- script: yarn install && yarn build+ script: yarn install && yarn build:productionworkingDirectory: $(Agent.TempDirectory)/jellyfin-web- task: CopyFiles@2diff --git a/.ci/azure-pipelines-windows.yml b/.ci/azure-pipelines-windows.ymlindex 11856f9c82..f3e02f97fd 100644--- a/.ci/azure-pipelines-windows.yml+++ b/.ci/azure-pipelines-windows.yml@@ -36,7 +36,7 @@ jobs:displayName: "Build Web Client"condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))inputs:- script: yarn install && yarn build+ script: yarn install && yarn build:productionworkingDirectory: $(Agent.TempDirectory)/jellyfin-web- task: CopyFiles@2diff --git a/Dockerfile b/Dockerfileindex 73ab3d7904..982bfc2cb8 100644--- a/Dockerfile+++ b/Dockerfile@@ -7,7 +7,7 @@ RUN apk add curl git \&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \&& cd jellyfin-web-* \&& yarn install \- && yarn build \+ && yarn build:production \&& mv dist /distFROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION}-buster as builderdiff --git a/Dockerfile.arm b/Dockerfile.armindex 07780e27bf..65f7800cb5 100644--- a/Dockerfile.arm+++ b/Dockerfile.arm@@ -11,7 +11,7 @@ RUN apk add curl git \&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \&& cd jellyfin-web-* \&& yarn install \- && yarn build \+ && yarn build:production \&& mv dist /distdiff --git a/Dockerfile.arm64 b/Dockerfile.arm64index 9dc6fa7edb..df909c7722 100644--- a/Dockerfile.arm64+++ b/Dockerfile.arm64@@ -11,7 +11,7 @@ RUN apk add curl git \&& curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \&& cd jellyfin-web-* \&& yarn install \- && yarn build \+ && yarn build:production \&& mv dist /dist@@ -35,7 +35,7 @@ ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarnENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin-RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \+RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \ffmpeg \libssl-dev \ca-certificates \