From 4b57416af00f72b7d16c30c1f86d6218d3239c2c Mon Sep 17 00:00:00 2001 From: marsalva Date: Sat, 3 Jan 2026 22:37:15 +0000 Subject: [PATCH] Actualizar Dockerfile --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f7b7614..785f215 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,16 @@ -FROM mcr.microsoft.com/playwright:v1.49.0-jammy +FROM node:20-bullseye WORKDIR /app -COPY package*.json ./ +COPY package.json ./ RUN npm install --omit=dev +# Instala Chromium + deps (necesario para Playwright en Docker) +RUN npx playwright install --with-deps chromium + COPY . . -CMD ["node", "index.js"] \ No newline at end of file +ENV PORT=3000 +EXPOSE 3000 + +CMD ["npm", "start"] \ No newline at end of file