mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Update nodeinfo/alpinefunction to latest mulit-stage
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
74ef6edf08
commit
6799f61f12
@ -1,8 +1,9 @@
|
|||||||
FROM alpine:3.8
|
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||||
|
|
||||||
RUN apk --no-cache add curl \
|
FROM alpine:3.9
|
||||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog > /usr/bin/fwatchdog \
|
|
||||||
&& chmod +x /usr/bin/fwatchdog
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
# Populate example here
|
# Populate example here
|
||||||
# ENV fprocess="wc -l"
|
# ENV fprocess="wc -l"
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
FROM alpine:3.8
|
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||||
|
|
||||||
RUN apk --no-cache add curl \
|
FROM alpine:3.9
|
||||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-arm64 > /usr/bin/fwatchdog \
|
|
||||||
&& chmod +x /usr/bin/fwatchdog
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
# Populate example here
|
# Populate example here
|
||||||
# ENV fprocess="wc -l"
|
# ENV fprocess="wc -l"
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
FROM alpine:3.8
|
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||||
|
|
||||||
RUN apk --no-cache add curl \
|
FROM alpine:3.9
|
||||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
|
||||||
&& chmod +x /usr/bin/fwatchdog
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
# Populate example here
|
# Populate example here
|
||||||
# ENV fprocess="wc -l"
|
# ENV fprocess="wc -l"
|
||||||
|
|
||||||
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
|
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
|
||||||
CMD ["fwatchdog"]
|
CMD ["fwatchdog"]
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
FROM alpine:3.8
|
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||||
|
|
||||||
|
FROM alpine:3.9
|
||||||
|
|
||||||
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
RUN apk --update add nodejs nodejs-npm
|
RUN apk --update add nodejs nodejs-npm
|
||||||
|
|
||||||
RUN apk --no-cache add curl \
|
|
||||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog > /usr/bin/fwatchdog \
|
|
||||||
&& chmod +x /usr/bin/fwatchdog
|
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY main.js .
|
COPY main.js .
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
FROM alpine:3.8
|
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||||
|
|
||||||
|
FROM alpine:3.9
|
||||||
|
|
||||||
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
RUN apk --update add nodejs nodejs-npm
|
RUN apk --update add nodejs nodejs-npm
|
||||||
|
|
||||||
RUN apk --no-cache add curl \
|
|
||||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-arm64 > /usr/bin/fwatchdog \
|
|
||||||
&& chmod +x /usr/bin/fwatchdog
|
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY main.js .
|
COPY main.js .
|
||||||
|
|
||||||
RUN npm i
|
RUN npm i
|
||||||
|
|
||||||
ENV fprocess="node main.js"
|
ENV fprocess="node main.js"
|
||||||
CMD ["fwatchdog"]
|
CMD ["fwatchdog"]
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
FROM alpine:3.8
|
FROM openfaas/classic-watchdog:0.14.4 as watchdog
|
||||||
RUN apk --no-cache add nodejs nodejs-npm
|
|
||||||
|
|
||||||
RUN apk --no-cache add curl \
|
FROM alpine:3.9
|
||||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
|
||||||
&& chmod +x /usr/bin/fwatchdog
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
|
RUN apk --update add nodejs nodejs-npm
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY main.js .
|
COPY main.js .
|
||||||
|
|
||||||
RUN npm i
|
RUN npm i
|
||||||
|
|
||||||
ENV fprocess="node main.js"
|
ENV fprocess="node main.js"
|
||||||
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
|
|
||||||
CMD ["fwatchdog"]
|
CMD ["fwatchdog"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user