Light-weight examples for HelloWorld - for on reading an input/request.

This commit is contained in:
Alex
2017-04-09 19:36:45 +01:00
parent 1b1af023c4
commit 8ec31d9b89
12 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,15 @@
FROM python:2.7-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 handler.py .
ENV fprocess="python handler.py"
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]