mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
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:
committed by
Alex Ellis
parent
cdbd25c0fb
commit
c28747890c
@ -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/
|
||||
|
||||
|
Reference in New Issue
Block a user