mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 04:26:35 +00:00
Add sample scraping/automation example via Phantomjs
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
9
sample-functions/Phantomjs/Dockerfile
Normal file
9
sample-functions/Phantomjs/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM alexellis2/phantomjs-docker:latest
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.5.6-alpha/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess="phantomjs /dev/stdin"
|
||||
|
||||
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
|
||||
CMD ["fwatchdog"]
|
Reference in New Issue
Block a user