Skip to content

Commit

Permalink
ci: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Jul 26, 2024
1 parent 9310254 commit 644f1d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /app
COPY package*.json ./

# 安装 Puppeteer 依赖
RUN apt-get update && apt-get install -y \
RUN apt update && apt install -y \
cron\
wget \
ca-certificates \
Expand Down Expand Up @@ -49,7 +49,10 @@ RUN apt-get update && apt-get install -y \
lsb-release \
xdg-utils \
--no-install-recommends \
xvfb \
&& rm -rf /var/lib/apt/lists/*
RUN sudo snap install chromium

#时区为中国
ENV TZ=Asia/Shanghai

Expand All @@ -60,4 +63,4 @@ RUN npm install
COPY . .

# 设置容器启动时运行的命令
CMD ["node", "/app/pteer.js"]
CMD ["node", "/app/bypasscf.js.js"]
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 644f1d7

Please sign in to comment.