mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
20 lines
368 B
Docker
20 lines
368 B
Docker
FROM node:6.9.1-alpine
|
|
|
|
ADD https://github.com/alexellis/faas/releases/download/0.5.1-alpha/fwatchdog /usr/bin
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY package.json .
|
|
|
|
RUN npm install -g coffee-script && \
|
|
npm i
|
|
|
|
COPY handler.coffee .
|
|
|
|
ENV fprocess="coffee handler.coffee"
|
|
|
|
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
|
|
|
|
CMD ["fwatchdog"]
|