Simplify: just remove broken .git reference, let webpack use JELLYFIN_VERSION

This commit is contained in:
mani
2026-01-06 03:45:38 +01:00
parent 405bfbd290
commit 28157b02bc

View File

@@ -65,15 +65,8 @@ RUN apk add \
WORKDIR ${SOURCE_DIR}
COPY jellyfin-web .
# Initialize git repo so webpack can get version info
# Remove submodule .git reference first
RUN rm -f .git \
&& git init \
&& git config user.email "build@jellyfin.org" \
&& git config user.name "Jellyfin Build" \
&& git add -A \
&& git commit -m "Build ${JELLYFIN_VERSION}" \
&& git tag -a "v${JELLYFIN_VERSION}" -m "Version ${JELLYFIN_VERSION}"
# Remove broken submodule .git reference
RUN rm -f .git
RUN npm ci --no-audit --unsafe-perm \
&& npm run build:production \