mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Node info example
This commit is contained in:
9
sample-functions/NodeInfo/Dockerfile
Normal file
9
sample-functions/NodeInfo/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM alpine:latest
|
||||
RUN apk --update add nodejs
|
||||
COPY ./fwatchdog /usr/bin/
|
||||
|
||||
COPY package.json .
|
||||
COPY main.js .
|
||||
RUN npm i
|
||||
ENV fprocess="node main.js"
|
||||
CMD ["fwatchdog"]
|
Reference in New Issue
Block a user