cron을 인라인으로 추가.
This commit is contained in:
@ -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"]
|
||||
|
||||
@ -1 +0,0 @@
|
||||
0 9 * * * python3 /data/gnu_autoupload.py >> /proc/1/fd/1 2>&1
|
||||
Reference in New Issue
Block a user