LuillY3 commited on
Commit
046e90f
·
verified ·
1 Parent(s): c9e402b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -17
Dockerfile CHANGED
@@ -4,26 +4,14 @@ RUN apk add --no-cache git python3 make g++
4
 
5
  WORKDIR /evolution
6
 
7
- # --- AQUÍ LA MAGIA: CLONAMOS TU FORK ---
8
- # Cambia "TU_USUARIO" por tu usuario de GitHub real
9
- RUN git clone https://github.com/Luillycarp/evolution-api.git .
10
-
11
- # Usamos la rama principal (main) que seguro existe
12
  RUN git checkout main
13
 
14
  RUN npm install
15
 
16
- # --- PARCHE DE FUERZA BRUTA (Sigue siendo necesario) ---
17
- RUN echo ' \\
18
- "use strict"; \\
19
- Object.defineProperty(exports, "__esModule", { value: true }); \\
20
- exports.fetchLatestBaileysVersion = void 0; \\
21
- const fetchLatestBaileysVersion = async (options) => { \\
22
- console.log("FORZANDO VERSION: 2.3000.1032975692"); \\
23
- return { version: [2, 3000, 1032975692], isLatest: true }; \\
24
- }; \\
25
- exports.fetchLatestBaileysVersion = fetchLatestBaileysVersion; \\
26
- ' > ./node_modules/@whiskeysockets/baileys/lib/Utils/fetch-latest-baileys-version.js
27
 
28
  RUN npm run build
29
 
@@ -37,7 +25,6 @@ WORKDIR /evolution
37
  COPY --from=builder /evolution/dist ./dist
38
  COPY --from=builder /evolution/node_modules ./node_modules
39
  COPY --from=builder /evolution/package.json .
40
- # Copiamos public/assets por si acaso
41
  COPY --from=builder /evolution/public ./public || true
42
 
43
  ENV PUPPETEER_SKIP_DOWNLOAD=true
 
4
 
5
  WORKDIR /evolution
6
 
7
+ # RECUERDA PONER TU URL DEL FORK AQUÍ
8
+ RUN git clone https://github.com/LuillY3/evolution-api.git .
 
 
 
9
  RUN git checkout main
10
 
11
  RUN npm install
12
 
13
+ # Parche en una sola línea para evitar error "unknown instruction"
14
+ RUN echo '"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchLatestBaileysVersion = void 0; const fetchLatestBaileysVersion = async (options) => { console.log("FORZANDO VERSION: 2.3000.1032975692"); return { version: [2, 3000, 1032975692], isLatest: true }; }; exports.fetchLatestBaileysVersion = fetchLatestBaileysVersion;' > ./node_modules/@whiskeysockets/baileys/lib/Utils/fetch-latest-baileys-version.js
 
 
 
 
 
 
 
 
 
15
 
16
  RUN npm run build
17
 
 
25
  COPY --from=builder /evolution/dist ./dist
26
  COPY --from=builder /evolution/node_modules ./node_modules
27
  COPY --from=builder /evolution/package.json .
 
28
  COPY --from=builder /evolution/public ./public || true
29
 
30
  ENV PUPPETEER_SKIP_DOWNLOAD=true