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