mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
16 lines
295 B
Docker
16 lines
295 B
Docker
FROM artemklevtsov/r-alpine:latest
|
|
|
|
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY handler.R .
|
|
|
|
ENV fprocess="Rscript handler.R"
|
|
|
|
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
|
|
|
|
CMD ["fwatchdog"]
|
|
|