mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 22:33:23 +00:00
New and updated sample function Dockerfiles & deleted NodeBaseFunction
Signed-off-by: rgee0 <richard@technologee.co.uk>
This commit is contained in:
@ -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
|
||||
|
@ -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"]
|
||||
|
Reference in New Issue
Block a user