mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
* Service lookup * Disable KeepAlive to force RR for replias. * set KeepAlive to 0 * Remove temporary file * Support white and rename function * Remove debug from node sample
17 lines
376 B
Docker
17 lines
376 B
Docker
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/
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
COPY package.json .
|
|
RUN npm i
|
|
COPY handler.js .
|
|
COPY sendColor.js .
|
|
COPY sample_response.json .
|
|
|
|
|
|
ENV fprocess="node handler.js"
|
|
CMD ["fwatchdog"]
|