From 3673509a87fbb8bbe02e6fde43a17b4277af515c Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Thu, 8 Jan 2026 12:24:02 -0800 Subject: [PATCH] Install bun in Dockerfile for tinypdf-plus build tinypdf-plus uses bun for its build process. Installing bun in the builder container so the package can be built. Co-Authored-By: Claude --- backend/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 2ee0298..80f8dc8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,7 +1,9 @@ FROM node:20-alpine AS builder -# Install OpenSSL and Git for Prisma and GitHub dependencies -RUN apk add --no-cache openssl git +# Install OpenSSL, Git, and Bun for Prisma, GitHub dependencies, and tinypdf-plus +RUN apk add --no-cache openssl git curl && \ + curl -fsSL https://bun.sh/install | sh && \ + /root/.bun/bin/bun --version WORKDIR /app @@ -14,7 +16,7 @@ COPY prisma ./prisma/ RUN npm install # Build tinypdf-plus package -RUN cd node_modules/tinypdf-plus && npm run build || (echo "tinypdf-plus build failed" && exit 1) +RUN cd node_modules/tinypdf-plus && /root/.bun/bin/bun run build || (echo "tinypdf-plus build failed" && exit 1) # Copy source COPY . .