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

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 20:10:59 +03:00
committed by Alex Ellis
parent 817aae34a2
commit cdbd25c0fb
17 changed files with 54 additions and 38 deletions

View File

@ -3,8 +3,9 @@ FROM python:2.7-alpine
RUN pip install textblob && \
python -m textblob.download_corpora
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
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 > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
WORKDIR /root/