mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 17:26:47 +00:00
15 lines
312 B
Docker
15 lines
312 B
Docker
FROM alpine:latest
|
|
RUN apk --update add nodejs
|
|
|
|
ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
COPY package.json .
|
|
COPY handler.js .
|
|
COPY parser.js .
|
|
COPY sample.json .
|
|
|
|
RUN npm i
|
|
ENV fprocess="node handler.js"
|
|
CMD ["fwatchdog"]
|