Sign inSign up

superwill8216/linuxdo-auto-read-arm64

By superwill8216

Updated about 1 year ago

Linux do auto read arm64 https://github.com/14790897/auto-read-liunxdo/blob/main/Dockerfile

Image
0

173

superwill8216/linuxdo-auto-read-arm64 repository overview

FROM node:22-slim

WORKDIR /app

COPY package*.json ./

RUN apt update && apt install -y
cron
wget
gnupg2
ca-certificates
fonts-liberation
libappindicator3-1
libasound2
libatk-bridge2.0-0
libatk1.0-0
libc6
libcairo2
libcups2
libdbus-1-3
libexpat1
libfontconfig1
libgbm1
libgcc1
libgdk-pixbuf2.0-0
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
xdg-utils
xvfb
findutils
chromium
&& rm -rf /var/lib/apt/lists/*

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium

ENV TZ=Asia/Shanghai

RUN npm install

COPY . .

RUN chmod -R 777 /app

创建清理脚本

RUN echo '#!/bin/bash\nfind /tmp -type f -atime +1 -delete' > /usr/local/bin/clean_tmp.sh &&
chmod +x /usr/local/bin/clean_tmp.sh

设置 cron 任务 (每天凌晨 3:00 执行)

RUN (crontab -l ; echo "0 3 * * * /usr/local/bin/clean_tmp.sh") | crontab -

启动 cron 并运行主程序 (使用 CMD 作为入口点)

CMD ["sh", "-c", "ulimit -c 0 && service cron start && node /app/bypasscf.js"]


#### Key Changes Made:

1. **Removed Google Chrome Repository Setup**: Eliminated the wget and GPG key setup for Google Chrome since it's not available for ARM64.

2. **Added Chromium Package**: Added `chromium` directly to the apt install command - this is available in Debian's official repositories for ARM64.

3. **Updated Puppeteer Path**: Changed `PUPPETEER_EXECUTABLE_PATH` from `/usr/bin/google-chrome` to `/usr/bin/chromium`.

Tag summary

Content type

Image

Digest

sha256:c04d09e20

Size

462.4 MB

Last updated

about 1 year ago

docker pull superwill8216/linuxdo-auto-read-arm64