mirror of
https://github.com/openfaas/faas.git
synced 2025-06-13 18:56:46 +00:00
Also bumps golang builder version to 1.9.4 for sample functions. Signed-off-by: John McCabe <john@johnmccabe.net>
16 lines
295 B
Docker
16 lines
295 B
Docker
FROM artemklevtsov/r-alpine:latest
|
|
|
|
ADD https://github.com/openfaas/faas/releases/download/0.7.1/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"]
|
|
|