Commit 262e2e4b authored by Genar Trias Ortiz's avatar Genar Trias Ortiz 🎉

Functional docker cron example

parent d0c5df41
FROM registry.cirici.com/alvarium/infrastructure/php-docker:apache
COPY . /var/www
WORKDIR /var/www
RUN apt-get update && apt-get install -y cron
EXPOSE 80
CMD ["/var/www/entrypoint.sh"]
#!/bin/bash
echo "* * * * * echo aloha >> /var/www/cronlog 2>&1" > /crontab.conf
crontab /crontab.conf
cron && tail -f /var/www/cronlog
apache2-foreground
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment