Actualizar Dockerfile

This commit is contained in:
marsalva 2026-01-03 22:37:15 +00:00
parent 6ef223084f
commit 4b57416af0
1 changed files with 9 additions and 3 deletions

View File

@ -1,10 +1,16 @@
FROM mcr.microsoft.com/playwright:v1.49.0-jammy FROM node:20-bullseye
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package.json ./
RUN npm install --omit=dev RUN npm install --omit=dev
# Instala Chromium + deps (necesario para Playwright en Docker)
RUN npx playwright install --with-deps chromium
COPY . . COPY . .
CMD ["node", "index.js"] ENV PORT=3000
EXPOSE 3000
CMD ["npm", "start"]