From a2f9308836b945b7f2a212ced175a1a3fffe3d89 Mon Sep 17 00:00:00 2001 From: bertybuttface <110790513+bertybuttface@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:40:22 +0000 Subject: [PATCH] Update Dockerfile remove unused stuff, refuce Xvfb buffer size --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 298907b..cbd84e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM satantime/puppeteer-node:19-slim -# Create app directory WORKDIR /usr/src/app -RUN mkdir -p /usr/src/app/Downloads ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium @@ -19,7 +17,6 @@ RUN apt update -qq \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /src/*.deb -# Install app dependencies COPY package*.json ./ RUN yarn install --frozen-lockfile --production && yarn cache clean @@ -31,4 +28,4 @@ VOLUME /storage ENV DATA_PATH="/storage" # We run a fake display and run our script using Xvfb -CMD xvfb-run --server-args="-screen 0 1024x768x24" yarn start \ No newline at end of file +CMD xvfb-run --server-args="-screen 0 1024x768x16" yarn start \ No newline at end of file