mirror of
https://github.com/alantang1977/JunTV.git
synced 2024-12-05 00:33:10 +02:00
fix:docker crontab run fail
This commit is contained in:
parent
35609ca573
commit
7da9a500db
1 changed files with 1 additions and 3 deletions
|
@ -43,9 +43,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends cron
|
|||
RUN if [ "$LITE" = False ]; then apt-get install -y --no-install-recommends chromium chromium-driver; fi \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN (crontab -l ; \
|
||||
echo "0 22 * * * python $APP_WORKDIR/main.py &"; \
|
||||
echo "0 10 * * * python $APP_WORKDIR/main.py &") | crontab -
|
||||
RUN (crontab -l ; echo "0 */12 * * * cd $APP_WORKDIR && /.venv/bin/python main.py";) | crontab -
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
|
Loading…
Reference in a new issue