From 96799707e229a1ee9ddb048ba9cf5cffb5edbcd4 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Sat, 30 Sep 2023 01:19:00 +0200 Subject: [PATCH] refacto Dockerfile apk import --- Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca4a24c9..3abfffbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,22 +6,13 @@ WORKDIR leCoffre RUN npm install -D prisma@4.11.0 COPY package.json ./ -RUN apk update && apk add openssh-client git +RUN apk update && apk add openssh-client git chromium COPY id_rsa /root/.ssh/id_rsa RUN chmod 600 ~/.ssh/id_rsa RUN eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa RUN ssh-keyscan github.com smart-chain-fr/leCoffre-resources.git >> /root/.ssh/known_hosts -# Install Google Chrome Stable and fonts -# Note: this installs the necessary libs to make the browser work with Puppeteer. -RUN apt-get update && apt-get install gnupg wget -y && \ - wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \ - sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \ - apt-get update && \ - apt-get install google-chrome-stable -y --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* - RUN npm install --frozen-lockfile # Rebuild the source code only when needed