mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
12 lines
258 B
Docker
12 lines
258 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 main.js .
|
|
RUN npm i
|
|
ENV fprocess="node main.js"
|
|
CMD ["fwatchdog"]
|