Skip to content

Commit

Permalink
cleanup puppeteer imag
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Aug 18, 2024
1 parent 3ea9abf commit 0fcb146
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions imags/node-puppeteer/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,13 @@ ENV LANG en_US.UTF-8
# user/group mapping needs to be done in runtime too, if overriding user

ENV PUPPETEER_CACHE_DIR=/opt/puppeteer
COPY ./google-linux_signing_key-*.pub /usr/share/keyrings/googlechrome-linux-keyring.gpg
#RUN sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] https://dl-ssl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
# && apt-get update \
# && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf dbus dbus-x11 \
# ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \
# strace \
# && rm -rf /var/lib/apt/lists/* \
# && usermod -a -G audio,video node \
# && mkdir -p ${PUPPETEER_CACHE_DIR}

RUN sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] https://dl-ssl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf dbus dbus-x11 \
librsvg2-common \
fonts-ipafont-* fonts-kacst-one \
ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \
strace \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
&& usermod -a -G audio,video node \
&& mkdir -p ${PUPPETEER_CACHE_DIR}
Expand Down

0 comments on commit 0fcb146

Please sign in to comment.