mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
add R sample function and readme
Signed-off-by: Chanyub Park <mrchypark@gmail.com>
This commit is contained in:
15
sample-functions/BaseFunctions/R/Dockerfile
Normal file
15
sample-functions/BaseFunctions/R/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM artemklevtsov/r-alpine:latest
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.6.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"]
|
||||
|
Reference in New Issue
Block a user