Skip to content

Commit

Permalink
Update docker-autoheal.dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tmknight authored Jan 15, 2024
1 parent c392b18 commit 0e0d2d7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docker/docker-autoheal.dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
FROM cgr.dev/chainguard/wolfi-base:latest
FROM alpine:latest as build

ARG BIN_VER
WORKDIR /

COPY ./bin/docker-autoheal-musl_${BIN_VER} /docker-autoheal
ARG TARGETARCH

RUN [ "${TARGETARCH}" == "amd64" ] && ARCH=x86_64 || ARCH=aarch64 \
&& curl -sLO https://github.com/tmknight/docker-autoheal/releases/latest/download/docker-autoheal-${ARCH}-unknown-linux-musl.tar.gz \
&& tar -xvf docker-autoheal-${ARCH}-unknown-linux-musl.tar.gz \
&& chmod +x docker-autoheal

FROM alpine:latest

COPY --from=builder /docker-autoheal /docker-autoheal

HEALTHCHECK --interval=5s \
CMD pgrep -f docker-autoheal || exit 1
Expand Down

0 comments on commit 0e0d2d7

Please sign in to comment.