Created
March 21, 2025 13:57
-
-
Save WeslyG/8f6a1fef32b758c02d9ea30471d18fcf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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