Skip to content

Commit a1cf2ad

Browse files
Work Flow Managerclaude
andcommitted
Fix critical Docker build issues with pnpm package manager
- Replace npm with pnpm (Firecrawl's actual package manager) - Use --frozen-lockfile for reliable dependency installation - Add shallow git clone for faster build times - Update startup command to use pnpm 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6d18764 commit a1cf2ad

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --d
2222

2323
WORKDIR /app
2424

25-
# Clone Firecrawl repository
26-
RUN git clone https://github.com/mendableai/firecrawl.git .
25+
# Clone Firecrawl repository (shallow clone for faster build)
26+
RUN git clone --depth 1 https://github.com/mendableai/firecrawl.git .
2727

28-
# Install Node.js dependencies
28+
# Install pnpm and Node.js dependencies
29+
RUN npm install -g pnpm
2930
WORKDIR /app/apps/api
30-
RUN npm install --timeout=300000
31+
RUN pnpm install --frozen-lockfile
3132

3233
# Install Playwright with browsers (separate step for better caching)
3334
RUN npx playwright install-deps && npx playwright install chromium
@@ -67,4 +68,4 @@ EXPOSE 3002
6768
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
6869
CMD curl -f http://localhost:3002/health || exit 1
6970

70-
CMD ["npm", "run", "start:production"]
71+
CMD ["pnpm", "run", "start:production"]

0 commit comments

Comments
 (0)