mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 17:26:47 +00:00
Sample-functions: Get watchdog using curl instead of ADD - arm64
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:
parent
c28747890c
commit
c062e4dbde
@ -1,8 +1,8 @@
|
||||
FROM arm64v8/alpine:3.7
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.9.0/fwatchdog-arm64 /usr/bin/fwatchdog
|
||||
# COPY ./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-arm64 > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
# Populate example here
|
||||
# ENV fprocess="wc -l"
|
||||
|
@ -1,9 +1,10 @@
|
||||
FROM arm64v8/alpine:3.7
|
||||
FROM alpine:3.7
|
||||
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-arm64 /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-arm64 > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY package.json .
|
||||
COPY main.js .
|
||||
|
Loading…
x
Reference in New Issue
Block a user