Skip to content
Snippets Groups Projects
Commit 6799f61f authored by Alex Ellis's avatar Alex Ellis
Browse files

Update nodeinfo/alpinefunction to latest mulit-stage


Signed-off-by: default avatarAlex Ellis <alexellis2@gmail.com>
parent 74ef6edf
No related branches found
No related tags found
No related merge requests found
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
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
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
# Populate example here
# ENV fprocess="wc -l"
......
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
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
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
# Populate example here
# ENV fprocess="wc -l"
......
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
RUN apk --no-cache add curl \
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-armhf > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
# Populate example here
# ENV fprocess="wc -l"
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
RUN apk --update add nodejs nodejs-npm
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /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.13.0/fwatchdog > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
RUN apk --update add nodejs nodejs-npm
COPY package.json .
COPY main.js .
......
FROM alpine:3.8
FROM openfaas/classic-watchdog:0.14.4 as watchdog
RUN apk --update add nodejs nodejs-npm
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /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.13.0/fwatchdog-arm64 > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
RUN apk --update add nodejs nodejs-npm
COPY package.json .
COPY main.js .
RUN npm i
ENV fprocess="node main.js"
CMD ["fwatchdog"]
FROM alpine:3.8
RUN apk --no-cache add nodejs nodejs-npm
FROM openfaas/classic-watchdog:0.14.4 as watchdog
RUN apk --no-cache add curl \
&& curl -sL https://github.com/openfaas/faas/releases/download/0.13.0/fwatchdog-armhf > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog
FROM alpine:3.9
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
RUN apk --update add nodejs nodejs-npm
COPY package.json .
COPY main.js .
RUN npm i
ENV fprocess="node main.js"
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment