Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
14790897 committed Apr 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 51d9566 commit effbaa1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cron-Dockerfile
Original file line number Diff line number Diff line change
@@ -52,14 +52,15 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
#时区为中国

# 将你的 Puppeteer 脚本复制到容器中
COPY --chmod=777 . .

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

# 安装 Node.js 依赖
RUN npm install

# 将你的 Puppeteer 脚本复制到容器中
COPY --chmod=777 . .

# 添加执行权限
RUN chmod +x /app/pteer.js

0 comments on commit effbaa1

Please sign in to comment.