fooder-api/Dockerfile.cron
Piotr Domański 5bc37bc127
Some checks are pending
Python lint and test / linttest (push) Waiting to run
[cron] add dockerfile
2024-08-03 23:24:52 +02:00

6 lines
229 B
Docker

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 -
CMD ["crond", "-f", "-l", "2"]