Adding CoffeeScript base example

Adding CoffeeScript base
This commit is contained in:
aafrey
2017-04-10 17:17:35 -04:00
committed by Alex Ellis
parent de359881e7
commit c7db0faab4
5 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,19 @@
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"]