diff --git a/sample-functions/AlpineFunction/Dockerfile.armhf b/sample-functions/AlpineFunction/Dockerfile.armhf index 07b4f73e..510cb7f6 100644 --- a/sample-functions/AlpineFunction/Dockerfile.armhf +++ b/sample-functions/AlpineFunction/Dockerfile.armhf @@ -1,7 +1,8 @@ FROM alpine:3.7 -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 # Populate example here # ENV fprocess="wc -l" diff --git a/sample-functions/NodeInfo/Dockerfile.armhf b/sample-functions/NodeInfo/Dockerfile.armhf index 1ba015c1..2f4038b7 100644 --- a/sample-functions/NodeInfo/Dockerfile.armhf +++ b/sample-functions/NodeInfo/Dockerfile.armhf @@ -1,8 +1,9 @@ FROM alpine:3.7 RUN apk --no-cache add nodejs nodejs-npm -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 COPY package.json . COPY main.js . diff --git a/sample-functions/ResizeImageMagick/Dockerfile.armhf b/sample-functions/ResizeImageMagick/Dockerfile.armhf index 61ec4be1..b9b7c11f 100644 --- a/sample-functions/ResizeImageMagick/Dockerfile.armhf +++ b/sample-functions/ResizeImageMagick/Dockerfile.armhf @@ -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" diff --git a/sample-functions/SentimentAnalysis/Dockerfile.armhf b/sample-functions/SentimentAnalysis/Dockerfile.armhf index d528665e..75244e5a 100644 --- a/sample-functions/SentimentAnalysis/Dockerfile.armhf +++ b/sample-functions/SentimentAnalysis/Dockerfile.armhf @@ -3,8 +3,10 @@ FROM arm32v7/python:2.7-slim RUN pip install textblob && \ python -m textblob.download_corpora -ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog -RUN chmod +x /usr/bin/fwatchdog +RUN apt-get update && apt-get install -y curl \ + && curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \ + && chmod +x /usr/bin/fwatchdog \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* WORKDIR /root/ diff --git a/sample-functions/figlet/Dockerfile.armhf b/sample-functions/figlet/Dockerfile.armhf index 12adab23..f7e09ca3 100644 --- a/sample-functions/figlet/Dockerfile.armhf +++ b/sample-functions/figlet/Dockerfile.armhf @@ -1,7 +1,8 @@ FROM alpine:3.7 -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 RUN apk add --no-cache figlet