Skip to content

Commit

Permalink
fix: workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 18, 2024
1 parent bdd3db0 commit 6083de8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cron-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ RUN chmod +x /app/pteer.js

# 创建一个新的脚本文件
RUN echo '#!/bin/bash\n\
cd /app\n\
node /app/pteer.js >> /var/log/cron.log 2>&1 &\n\
sleep 10m\n\
pkill -f "node /app/pteer.js"\n' > /app/run_task.sh
Expand Down

0 comments on commit 6083de8

Please sign in to comment.