Files
docker-autoheal/Dockerfile
T
modem7 5b99d0280f Updating image
Updated Dockerfile and scripts with some of the latest PR's, and work from tylerpace.

Adding a few files back from original repo such as tests and github workflow.

Co-Authored-By: Tyler Pace <4195596+tylerpace@users.noreply.github.com>
2023-09-15 15:32:52 +01:00

25 lines
525 B
Docker

# syntax = docker/dockerfile:latest
FROM alpine:3.18.3
RUN apk add --no-cache curl jq
ENV AUTOHEAL_CONTAINER_LABEL=autoheal \
AUTOHEAL_START_PERIOD=0 \
AUTOHEAL_INTERVAL=5 \
AUTOHEAL_DEFAULT_STOP_TIMEOUT=10 \
DOCKER_SOCK=/var/run/docker.sock \
CURL_TIMEOUT=30 \
WEBHOOK_URL="" \
WEBHOOK_JSON_KEY="content" \
APPRISE_URL="" \
POST_RESTART_SCRIPT=""
COPY docker-entrypoint /
HEALTHCHECK --interval=5s CMD pgrep -f autoheal || exit 1
ENTRYPOINT ["/docker-entrypoint"]
CMD ["autoheal"]