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:
parent
d2151c8ee1
commit
80a1d87cac
1 changed files with 4 additions and 2 deletions
|
|
@ -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 . .
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue