Actualizar Dockerfile
This commit is contained in:
parent
6ef223084f
commit
4b57416af0
12
Dockerfile
12
Dockerfile
|
|
@ -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"]
|
||||||
Loading…
Reference in New Issue