Update Dockerfile

remove unused stuff, refuce Xvfb buffer size
This commit is contained in:
bertybuttface 2023-01-19 17:40:22 +00:00
parent c1ef71817a
commit a2f9308836

View File

@ -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
CMD xvfb-run --server-args="-screen 0 1024x768x16" yarn start