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 <noreply@anthropic.com>
This commit is contained in:
parent
dcad331f48
commit
3673509a87
1 changed files with 5 additions and 3 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
# Install OpenSSL and Git for Prisma and GitHub dependencies
|
# Install OpenSSL, Git, and Bun for Prisma, GitHub dependencies, and tinypdf-plus
|
||||||
RUN apk add --no-cache openssl git
|
RUN apk add --no-cache openssl git curl && \
|
||||||
|
curl -fsSL https://bun.sh/install | sh && \
|
||||||
|
/root/.bun/bin/bun --version
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -14,7 +16,7 @@ COPY prisma ./prisma/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Build tinypdf-plus package
|
# 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 source
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue