Spaces:
Sleeping
Sleeping
Download Dockerfile from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/Dockerfile
790 Bytes
| FROM node:22-alpine AS base | |
| # Installation des outils nécessaires | |
| RUN apk add --no-cache chromium bash g++ make rust cargo go redis | |
| ENV PNPM_HOME="/pnpm" | |
| ENV PATH="$PNPM_HOME:$PATH" | |
| RUN corepack enable | |
| WORKDIR /usr/src/app | |
| COPY . . | |
| WORKDIR /usr/src/app/apps/api | |
| # Installation et build | |
| RUN pnpm install --no-frozen-lockfile | |
| RUN pnpm run build | |
| # --- CONFIGURATION PRODUCTION FORCÉE --- | |
| ENV NODE_ENV=production | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=7860 | |
| ENV APP_PORT=7860 | |
| ENV API_PORT=7860 | |
| ENV SELF_HOSTED=true | |
| ENV USE_DB_AUTHENTICATION=false | |
| # On s'assure que l'API cherche bien Redis sur localhost | |
| ENV REDIS_URL="redis://127.0.0.1:6379" | |
| EXPOSE 7860 | |
| # CORRECTIF : On lance Redis en tâche de fond avec son binaire natif, puis l'API | |
| CMD redis-server --daemonize yes && node dist/src/index.js | |