mirror of
https://github.com/maciej3031/comixify.git
synced 2026-03-11 08:54:35 +00:00
Add cron job to remove tmp and not deleted video files
This commit is contained in:
parent
079b4d9c8d
commit
35215648e6
1 changed files with 8 additions and 0 deletions
|
|
@ -49,5 +49,13 @@ RUN unzip popularity/pretrained_model/svr_test_11.10.sk.zip -d popularity/pretra
|
|||
# Port to expose
|
||||
EXPOSE 8008
|
||||
|
||||
# Remove tmp and not deleted videos periodically
|
||||
RUN touch mycron && \
|
||||
echo "5 0 * * 1 rm /comixify/media/raw_videos/*" >> mycron && \
|
||||
echo "5 0 * * 1 rm -r /comixify/tmp/*" >> mycron && \
|
||||
echo "" >> mycron && \
|
||||
crontab mycron && \
|
||||
rm mycron
|
||||
|
||||
ENTRYPOINT ["sh", "entrypoint.sh"]
|
||||
CMD ['start']
|
||||
|
|
|
|||
Loading…
Reference in a new issue