Skip to content

Commit 81c7a28

Browse files
committed
chore: Update Dockerfile to install necessary dependencies for Puppeteer
1 parent 83a005a commit 81c7a28

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Dockerfile

+3-9
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,12 @@ RUN yarn config set network-timeout 1200000
3232

3333
RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
3434

35-
# RUN apt-get update && apt-get install gnupg wget -y && \
36-
# wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
37-
# sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
38-
# apt-get update && \
39-
# apt-get install google-chrome-stable -y --no-install-recommends && \
40-
# rm -rf /var/lib/apt/lists/*
35+
RUN apt -y install libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libasound2 libatk1.0-0 libatk-bridge2.0-0 libpangocairo-1.0-0 libgtk-3-0
4136

4237
RUN apt -y install g++ make
43-
# RUN npm install -g node-gyp
38+
4439
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
40+
4541
RUN npm --no-update-notifier --no-fund --global install pnpm
4642
# Copy API
4743
COPY --from=server /app/dist/ .
@@ -59,6 +55,4 @@ RUN yarn install --production --frozen-lockfile
5955

6056
ENV NODE_ENV=production
6157

62-
# ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
63-
6458
CMD ["yarn", "start"]

0 commit comments

Comments
 (0)