Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
add cleanup command to cronjob in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaidas Bagdonas committed Nov 22, 2019
1 parent 6874fc5 commit 79aec42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ RUN apk update && \
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
COPY ./docker/php-fpm.conf /etc/php7/php-fpm.d/www.conf

COPY ./docker/crontab /var/www/crontab
RUN crontab /var/www/crontab

WORKDIR /var/www/html/

COPY --chown=nobody:nobody ./ ./
Expand Down
1 change: 1 addition & 0 deletions docker/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0 2 * * * cd /var/www/html && /usr/bin/php bin/console app:clean:messages 30 >> /var/log/crontab.log 2>&1

0 comments on commit 79aec42

Please sign in to comment.