mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 20:16:37 +00:00
Light-weight examples for HelloWorld - for on reading an input/request.
This commit is contained in:
18
sample-functions/BaseFunctions/node/Dockerfile
Normal file
18
sample-functions/BaseFunctions/node/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM node:6.9.1-alpine
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.5.1-alpha/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
COPY package.json .
|
||||
|
||||
RUN npm i
|
||||
COPY handler.js .
|
||||
|
||||
ENV fprocess="node handler.js"
|
||||
|
||||
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
|
||||
|
||||
CMD ["fwatchdog"]
|
||||
|
Reference in New Issue
Block a user