From 9665f483e400d6907093fcd42e53e4f3c9e02644 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Fri, 12 May 2023 18:59:37 +0800 Subject: [PATCH] add dependencies for chrome --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2964668..11e107d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,22 @@ COPY package.json /usr/src/app/ RUN npm i --registry=https://registry.npm.taobao.org +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive apt install -y \ + libnss3 \ + libatk1.0-0 \ + libatk-bridge2.0-0 \ + libcups2 \ + libdrm2 \ + libxkbcommon0 \ + libxcomposite1 \ + libxdamage1 \ + libxfixes3 \ + libxrandr2 \ + libgbm1 \ + libasound2 \ + && rm -rf /var/lib/apt/lists/* + COPY . /usr/src/app EXPOSE 3000