New and updated sample function Dockerfiles & deleted NodeBaseFunction

Signed-off-by: rgee0 <richard@technologee.co.uk>
This commit is contained in:
rgee0
2017-08-13 20:24:59 +01:00
parent f43dc49db0
commit 1cd7ce2449
16 changed files with 55 additions and 80 deletions

View File

@ -1,5 +1,5 @@
FROM alpine:latest
RUN apk --update add nodejs
RUN apk --update add nodejs nodejs-npm
ADD https://github.com/alexellis/faas/releases/download/0.6.0/fwatchdog /usr/bin
RUN chmod +x /usr/bin/fwatchdog

View File

@ -1,11 +1,12 @@
FROM armhf/alpine:latest
RUN apk --no-cache add nodejs
FROM arm32v6/alpine:latest
RUN apk --no-cache add nodejs nodejs-npm
COPY fwatchdog-armhf /usr/bin/fwatchdog
ADD https://github.com/alexellis/faas/releases/download/0.6.0/fwatchdog-armhf /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
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"]