mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Enable turning off in sample function
This commit is contained in:
@ -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"]
|
||||
|
Reference in New Issue
Block a user