Actualizar Dockerfile
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM node:20-alpine
|
||||
FROM node:20-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -6,7 +6,10 @@ WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copiar el código fuente (server.js)
|
||||
# 🔴 ESTA ES LA MAGIA: Instalar Chromium y TODAS las dependencias de Linux que necesita
|
||||
RUN npx playwright install chromium --with-deps
|
||||
|
||||
# Copiar el código fuente
|
||||
COPY . .
|
||||
|
||||
# Exponer puerto
|
||||
|
||||
Reference in New Issue
Block a user