Skip to content

Instantly share code, notes, and snippets.

@WeslyG
Created March 21, 2025 13:57
Show Gist options
  • Save WeslyG/8f6a1fef32b758c02d9ea30471d18fcf to your computer and use it in GitHub Desktop.
Save WeslyG/8f6a1fef32b758c02d9ea30471d18fcf to your computer and use it in GitHub Desktop.
FROM alpine:latest
RUN apk add --no-cache curl
# Создаем cron job для отправки запроса каждые 60 секунд
RUN echo "* * * * * curl -s https://uptime.mysite.ru/api/push/\${URL_VAR}?status=up&msg=OK&ping=" > /etc/crontabs/root
CMD ["crond", "-f"]
# docker build -t qwe .
# docker run -e URL_VAR=asdqwe qwe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment