From 7931c89487f6933d6c19adc409cf95cc97a1aaca Mon Sep 17 00:00:00 2001 From: marsalva Date: Sun, 28 Dec 2025 19:37:02 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..de355d2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Usamos la imagen oficial de Playwright (incluye Node y navegadores) +FROM mcr.microsoft.com/playwright:v1.40.0-jammy + +# Crear directorio de trabajo +WORKDIR /app + +# Copiar archivos de dependencias +COPY package.json ./ + +# Instalar dependencias de Node +RUN npm install + +# Instalar los navegadores necesarios de Playwright (solo Chromium para ahorrar espacio) +RUN npx playwright install chromium + +# Copiar el resto del código (el robot y el html) +COPY . . + +# Exponer el puerto (Render usa la variable PORT automáticamente) +ENV PORT=3000 +EXPOSE 3000 + +# Comando de inicio +CMD ["node", "robot_cobros.js"] \ No newline at end of file