Actualizar dockerfile
This commit is contained in:
parent
fbabfe0c9e
commit
5399398313
19
dockerfile
19
dockerfile
|
|
@ -1,17 +1,12 @@
|
||||||
# estados-homeserve/Dockerfile
|
FROM node:20-bullseye
|
||||||
FROM node:18-slim
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
ca-certificates curl gnupg 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
|
WORKDIR /app
|
||||||
COPY package.json ./
|
|
||||||
RUN npm install
|
COPY package*.json ./
|
||||||
RUN npx playwright install chromium
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN npx playwright install --with-deps chromium
|
||||||
|
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
Loading…
Reference in New Issue