mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
Also bumps golang builder version to 1.9.4 for sample functions. Signed-off-by: John McCabe <john@johnmccabe.net>
15 lines
263 B
Docker
15 lines
263 B
Docker
FROM alpine:3.6
|
|
|
|
RUN apk --update add nodejs nodejs-npm
|
|
|
|
ADD https://github.com/openfaas/faas/releases/download/0.7.1/fwatchdog /usr/bin
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
COPY package.json .
|
|
COPY main.js .
|
|
|
|
RUN npm i
|
|
|
|
ENV fprocess="node main.js"
|
|
CMD ["fwatchdog"]
|