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 <noreply@anthropic.com>
This commit is contained in:
fullsizemalt 2026-01-08 12:28:17 -08:00
parent d2151c8ee1
commit 80a1d87cac

View file

@ -17,8 +17,10 @@ COPY prisma ./prisma/
# Install dependencies # Install dependencies
RUN npm install RUN npm install
# Build tinypdf-plus package # Build tinypdf-plus package (add bun to PATH)
RUN cd node_modules/tinypdf-plus && /root/.bun/bin/bun run build || (echo "tinypdf-plus build failed" && exit 1) 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 source
COPY . . COPY . .