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 . .