2015-07-07 09:44:11 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for urlwatch
|
|
|
|
#
|
|
|
|
|
2021-01-11 12:48:15 +02:00
|
|
|
FROM alpine:3
|
2021-01-19 22:14:53 +02:00
|
|
|
LABEL maintainer="EasyPi Software Foundation"
|
2015-07-07 09:44:11 +02:00
|
|
|
|
2019-05-02 13:34:00 +02:00
|
|
|
RUN set -xe \
|
2021-04-06 10:08:14 +02:00
|
|
|
&& apk add --no-cache ca-certificates \
|
|
|
|
build-base \
|
|
|
|
libffi-dev \
|
|
|
|
libxml2 \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt \
|
|
|
|
libxslt-dev \
|
|
|
|
openssl-dev \
|
|
|
|
py3-cryptography \
|
|
|
|
py3-pip \
|
|
|
|
python3 \
|
|
|
|
python3-dev \
|
Add beautifulsoup4 as a dependency
So using filters like `beautify` won't result in the following error:
```
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/urlwatch/handler.py", line 120, in process
data = FilterBase.process(filter_kind, subfilter, self, data)
File "/usr/lib/python3.8/site-packages/urlwatch/filters.py", line 180, in process
return filtercls(state.job, state).filter(data, subfilter)
File "/usr/lib/python3.8/site-packages/urlwatch/filters.py", line 276, in filter
raise ImportError('Please install BeautifulSoup')
ImportError: Please install BeautifulSoup
```
2021-04-08 16:53:02 +02:00
|
|
|
&& pip3 install appdirs \
|
|
|
|
cssselect \
|
|
|
|
keyring \
|
|
|
|
lxml \
|
|
|
|
minidb \
|
|
|
|
pyyaml \
|
|
|
|
requests \
|
|
|
|
chump \
|
|
|
|
beautifulsoup4 \
|
|
|
|
pushbullet.py \
|
|
|
|
urlwatch \
|
2019-05-09 11:18:05 +02:00
|
|
|
&& apk del build-base \
|
|
|
|
libffi-dev \
|
2015-07-07 09:44:11 +02:00
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
2019-05-02 13:34:00 +02:00
|
|
|
openssl-dev \
|
|
|
|
python3-dev \
|
2019-05-09 11:18:05 +02:00
|
|
|
&& echo '*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db' | crontab -
|
2015-07-07 09:44:11 +02:00
|
|
|
|
2015-07-07 11:08:38 +02:00
|
|
|
VOLUME /root/.urlwatch
|
|
|
|
WORKDIR /root/.urlwatch
|
2015-07-07 09:44:11 +02:00
|
|
|
|
|
|
|
CMD ["crond", "-f", "-L", "/dev/stdout"]
|