mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
14 lines
295 B
Docker
14 lines
295 B
Docker
FROM alpine:3.7
|
|
RUN apk --update add nodejs nodejs-npm
|
|
|
|
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
COPY package.json .
|
|
COPY handler.js .
|
|
COPY sample.json .
|
|
|
|
RUN npm i
|
|
ENV fprocess="node handler.js"
|
|
CMD ["fwatchdog"]
|