From 80a1d87cacc77ba657161a66a51a4dab04df8826 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Thu, 8 Jan 2026 12:28:17 -0800 Subject: [PATCH] Add bun to PATH for tinypdf-plus build The tinypdf-plus build script uses 'bun' directly without a full path. Adding /root/.bun/bin to PATH so the build script can find the bun binary. Co-Authored-By: Claude --- backend/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index b3517f2..6e9094f 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,8 +17,10 @@ COPY prisma ./prisma/ # Install dependencies RUN npm install -# Build tinypdf-plus package -RUN cd node_modules/tinypdf-plus && /root/.bun/bin/bun run build || (echo "tinypdf-plus build failed" && exit 1) +# Build tinypdf-plus package (add bun to PATH) +RUN cd node_modules/tinypdf-plus && \ + PATH=/root/.bun/bin:$PATH /root/.bun/bin/bun run build || \ + (echo "tinypdf-plus build failed" && exit 1) # Copy source COPY . .