From c8e844614e4b2cb72e33c66d222ecafc37cd89bc Mon Sep 17 00:00:00 2001 From: marsalva Date: Thu, 25 Dec 2025 23:04:29 +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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..a89c63b --- /dev/null +++ b/dockerfile @@ -0,0 +1,17 @@ +# robot-homeserve/Dockerfile +FROM node:18-slim + +# Dependencias necesarias para Playwright (Chromium) +RUN apt-get update && apt-get install -y \ + wget gnupg ca-certificates fonts-liberation libatk-bridge2.0-0 libatk1.0-0 \ + libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 \ + libgbm1 libasound2 libnss3 libxshmfence1 libx11-xcb1 libgtk-3-0 \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app +COPY package.json ./ +RUN npm install +RUN npx playwright install chromium + +COPY . . +CMD ["node", "robot.js"] \ No newline at end of file