mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
16 lines
291 B
Docker
16 lines
291 B
Docker
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"]
|
|
|