Spaces:
Paused
Paused
Download Dockerfile from IRIEKO/Evolutionapi: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/IRIEKO/Evolutionapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/IRIEKO/Evolutionapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/IRIEKO/Evolutionapi/resolve/main/Dockerfile
1.09 kB
| # Base oficial v2.3.7 (la más nueva y estable) | |
| FROM evoapicloud/evolution-api:v2.3.7 | |
| USER root | |
| # Dependencias para Chromium (WhatsApp Web) | |
| RUN apk add --no-cache \ | |
| chromium \ | |
| nss \ | |
| freetype \ | |
| harfbuzz \ | |
| ca-certificates \ | |
| ttf-freefont \ | |
| findutils | |
| # Configuración HF + WhatsApp Web | |
| ENV PORT=7860 | |
| ENV SERVER_PORT=7860 | |
| ENV PUPPETEER_SKIP_DOWNLOAD=true | |
| ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser | |
| ENV CHROME_BIN=/usr/bin/chromium-browser | |
| ENV CHROME_ARGS="--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage --disable-gpu --single-process --no-zygote" | |
| # TU PARCHE PERFECTO (forzar WhatsApp Web 2.3000.1032975692) | |
| RUN find node_modules/baileys -name "generics.js" -type f -exec sed -i 's|const baileysVersion = \\[.*\\];|const baileysVersion = [2, 3000, 1032975692]; console.log("FORZANDO VERSION (Parche): 2.3000.1032975692");|' {} \; | |
| # Activar EvoAI y PostgreSQL (para Supabase) | |
| ENV DATABASE_ENABLED=true | |
| ENV DATABASE_PROVIDER=postgresql | |
| ENV EVOAI_ENABLED=true | |
| ENV OPENAI_ENABLED=true | |
| EXPOSE 7860 | |
| CMD ["node", "./dist/src/main.js"] | |