fooder-api/Dockerfile.cron

7 lines
229 B
Docker
Raw Normal View History

2024-08-03 23:24:52 +02:00
FROM alpine
RUN apk add --no-cache curl
2024-08-03 23:26:40 +02:00
RUN crontab -l | { cat; echo '1 * * * * curl -X POST "http://tasks:8000/api/cache_product_usage_data" -H "Authorization: Bearer ${API_KEY}"'; } | crontab -
2024-08-03 23:24:52 +02:00
CMD ["crond", "-f", "-l", "2"]