File size: 822 Bytes
c335c99 ee0a197 c335c99 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM node:18
WORKDIR /app
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /usr/share/keyrings/google-chrome-keyring.gpg \
&& echo 'deb [signed-by=/usr/share/keyrings/google-chrome-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y google-chrome-stable
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_CACHE_DIR=/tmp/puppeteer_cache \
NODE_ENV=production
RUN git clone https://github.com/ReirLair/aniheaven.git /app
RUN npm install puppeteer puppeteer-extra puppeteer-extra-plugin-stealth express crypto axios qs cors ghost-cursor
RUN npx puppeteer install
EXPOSE 7860
CMD ["node", "app.js"] |