faas/sample-functions/NodeInfo/Dockerfile.armhf
rgee0 1cd7ce2449 New and updated sample function Dockerfiles & deleted NodeBaseFunction
Signed-off-by: rgee0 <richard@technologee.co.uk>
2017-08-13 21:47:40 +01:00

13 lines
348 B
Docker

FROM arm32v6/alpine:latest
RUN apk --no-cache add nodejs nodejs-npm
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"]