1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:27 +02:00
dockerfiles/urlwatch/Dockerfile

40 lines
1.3 KiB
Docker
Raw Normal View History

2015-07-07 15:44:11 +08:00
#
# Dockerfile for urlwatch
#
FROM alpine
2017-05-08 07:05:07 +08:00
MAINTAINER kev <noreply@easypi.pro>
2015-07-07 15:44:11 +08:00
2019-05-02 19:34:00 +08:00
RUN set -xe \
&& apk add --no-cache ca-certificates \
2019-05-09 17:18:05 +08:00
build-base \
libffi-dev \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
openssl-dev \
python3 \
python3-dev \
&& python3 -m pip install appdirs \
2019-05-02 19:34:00 +08:00
cssselect \
2019-05-09 17:18:05 +08:00
keyring \
lxml \
minidb \
pyyaml \
requests \
chump \
2019-05-09 17:18:05 +08:00
urlwatch \
&& apk del build-base \
libffi-dev \
2015-07-07 15:44:11 +08:00
libxml2-dev \
libxslt-dev \
2019-05-02 19:34:00 +08:00
openssl-dev \
python3-dev \
2019-05-09 17:18:05 +08:00
&& echo '*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db' | crontab -
2015-07-07 15:44:11 +08:00
2015-07-07 17:08:38 +08:00
VOLUME /root/.urlwatch
WORKDIR /root/.urlwatch
2015-07-07 15:44:11 +08:00
CMD ["crond", "-f", "-L", "/dev/stdout"]