puppeteer / Dockerfile
qsyhh6's picture
Update Dockerfile
a53af7d verified
raw
history blame contribute delete
748 Bytes
FROM node:20.14.0
USER root
RUN apt update \
&& npm install pnpm -g \
&& apt-get install -y ca-certificates \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libc6 \
libcairo2 \
libcups2 \
libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3 \
libdbus-1-3 \
libdrm2 \
libexpat1 \
libgbm1 \
libglib2.0-0 \
libgtk-3-0 | libgtk-4-1 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libudev1 \
libvulkan1 \
libx11-6 \
libxcb1 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxkbcommon0 \
libxrandr2 \
wget \
xdg-utils
COPY . /app
WORKDIR /app
RUN chmod 777 /app;
EXPOSE 7005
RUN pnpm init && pnpm install @karinjs/puppeteer && npx init
CMD node .