diff --git a/Dockerfile.cron b/Dockerfile.cron index 1dfe4c9..3ed6096 100644 --- a/Dockerfile.cron +++ b/Dockerfile.cron @@ -1,6 +1,6 @@ FROM alpine RUN apk add --no-cache curl -RUN crontab -l | { cat; echo '* * * * * curl -X POST "http://tasks:8000/api/cache_product_usage_data" -H "Authorization: Bearer ${API_KEY}"'; } | crontab - +RUN crontab -l | { cat; echo '1 * * * * curl -X POST "http://tasks:8000/api/cache_product_usage_data" -H "Authorization: Bearer ${API_KEY}"'; } | crontab - CMD ["crond", "-f", "-l", "2"]