FaaS does Cobol :-)

This commit is contained in:
Alex Ellis
2017-05-04 17:40:04 +01:00
parent 42ce8ed0b3
commit c05aee101c
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,15 @@
FROM toricls/gnucobol:latest
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.cob .
RUN cobc -x handler.cob
ENV fprocess="./handler"
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]