mirror of
https://github.com/openfaas/faas.git
synced 2025-06-27 17:23:25 +00:00
New function
This commit is contained in:
17
sample-functions/SentimentAnalysis/Dockerfile
Normal file
17
sample-functions/SentimentAnalysis/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM python:2.7-alpine
|
||||
RUN pip install textblob
|
||||
RUN python -m textblob.download_corpora
|
||||
|
||||
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"]
|
||||
|
Reference in New Issue
Block a user