Update figlet's watchdog

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis 2019-06-25 21:22:26 +01:00
parent 6799f61f12
commit ab4d95c4d8
2 changed files with 11 additions and 8 deletions

View File

@ -1,8 +1,9 @@
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
RUN apk --no-cache add curl \
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
RUN apk add --no-cache figlet

View File

@ -1,8 +1,9 @@
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
RUN apk --no-cache add curl \
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-armhf > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
RUN apk add --no-cache figlet
@ -11,3 +12,4 @@ ENV fprocess="figlet"
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]