Fix: Newer trixie images did not enable yarn.

This commit is contained in:
2026-08-31 04:31:48 +00:00
parent d023089720
commit c7412f080d
+2 -2
View File
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Install dependencies based on the preferred package manager
COPY bookie/package.json bookie/yarn.lock* bookie/package-lock.json* bookie/pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
if [ -f yarn.lock ]; then corepack enable yarn && yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
@@ -23,7 +23,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY /bookie ./
RUN \
if [ -f yarn.lock ]; then yarn run build; \
if [ -f yarn.lock ]; then corepack enable yarn && yarn run build; \
elif [ -f package-lock.json ]; then npm run build; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
else echo "Lockfile not found." && exit 1; \