-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
63 lines (58 loc) · 2.57 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Dockerfile for urlwatch
#
FROM alpine:3.20
MAINTAINER EasyPi Software Foundation
ARG URLWATCH_VERSION
RUN set -xe \
&& apk add --no-cache ca-certificates \
bash \
bind-tools \
build-base \
curl \
jq \
libffi-dev \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
mosquitto-clients \
openssl-dev \
py3-pip \
python3 \
python3-dev \
tzdata \
&& pip3 config set global.break-system-packages true \
&& pip3 install --no-binary lxml \
aioxmpp \
appdirs \
beautifulsoup4 \
chump \
cssbeautifier \
cssselect \
html2text \
jq \
jsbeautifier \
keyring \
keyrings.alt \
lxml \
markdown2 \
matrix_client \
minidb \
pushbullet.py \
pyppeteer \
pytz \
pyyaml \
requests \
&& sed -i '/if "proxies" not in kwargs:$/s//if True:/' /usr/lib/python3.12/site-packages/requests/sessions.py \
&& pip3 install urlwatch==${URLWATCH_VERSION} \
&& apk del build-base \
libffi-dev \
libxml2-dev \
libxslt-dev \
openssl-dev \
python3-dev \
&& echo '*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db' | crontab -
VOLUME /root/.urlwatch
WORKDIR /root/.urlwatch
CMD ["crond", "-f", "-L", "/dev/stdout"]