cron을 인라인으로 추가.

This commit is contained in:
2025-06-30 12:43:59 +09:00
parent 4f8d8ea84f
commit 4d788ef710
2 changed files with 7 additions and 4 deletions

View File

@ -25,7 +25,11 @@ WORKDIR /data
RUN fc-cache -f -v
COPY ./build/crontab.txt /etc/cron.d/autoupload-cron
RUN chmod 0644 /etc/cron.d/autoupload-cron && crontab /etc/cron.d/autoupload-cron
COPY run.sh /data/run.sh
RUN chmod +x /data/run.sh
CMD ["cron", "-f"]
# crontab 등록
RUN echo "* * * * * /data/run.sh >> /proc/1/fd/1 2>&1" | crontab -
#RUN echo "0 9 * * * /data/run.sh >> /proc/1/fd/1 2>&1" | crontab -
CMD ["/bin/bash", "-c", "cron -f"]

View File

@ -1 +0,0 @@
0 9 * * * python3 /data/gnu_autoupload.py >> /proc/1/fd/1 2>&1