Enable turning off in sample function

This commit is contained in:
Alex
2017-02-03 08:56:15 +00:00
parent ea3619330e
commit 07ee1f22d5
6 changed files with 81 additions and 26 deletions

View File

@ -1,15 +1,16 @@
FROM alpine:latest
RUN apk --update add nodejs
#ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin
COPY ./fwatchdog /usr/bin/
ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin
#COPY ./fwatchdog /usr/bin/
RUN chmod +x /usr/bin/fwatchdog
COPY package.json .
COPY handler.js .
COPY sendColor.js .
COPY sample.json .
COPY package.json .
COPY handler.js .
COPY sendColor.js .
COPY sample_response.json .
RUN npm i
ENV fprocess="node handler.js"
CMD ["fwatchdog"]