Sample-functions: Get watchdog using curl instead of ADD - armhf

Convert all sample-functions to use curl to get the watchdog as
it can be cached by Docker. Issue #841

Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
This commit is contained in:
Radoslav Dimitrov
2018-09-02 23:30:11 +03:00
committed by Alex Ellis
parent cdbd25c0fb
commit c28747890c
5 changed files with 16 additions and 10 deletions

View File

@ -2,8 +2,9 @@ FROM arm32v6/alpine:3.7
RUN apk --no-cache add imagemagick
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
RUN apk --no-cache add curl \
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
ENV fprocess "convert - -resize 50% fd:1"