mirror of
https://github.com/matrixgpt/matrix-chatgpt-bot.git
synced 2024-10-01 01:25:41 -04:00
Update Dockerfile
remove unused stuff, refuce Xvfb buffer size
This commit is contained in:
parent
c1ef71817a
commit
a2f9308836
@ -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
|
Loading…
Reference in New Issue
Block a user