2015-07-07 09:44:11 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for urlwatch
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
|
|
|
RUN apk add -U ca-certificates \
|
|
|
|
build-base \
|
|
|
|
libxml2 \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt \
|
|
|
|
libxslt-dev \
|
|
|
|
make \
|
|
|
|
python-dev \
|
|
|
|
py-pip \
|
2015-08-14 06:36:49 +02:00
|
|
|
&& pip install cssselect \
|
|
|
|
futures \
|
2015-07-07 11:06:08 +02:00
|
|
|
keyring \
|
2015-07-07 09:44:11 +02:00
|
|
|
lxml \
|
|
|
|
urlwatch \
|
2015-07-07 09:54:23 +02:00
|
|
|
pyyaml \
|
2015-07-07 09:44:11 +02:00
|
|
|
&& apk del build-base \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
python-dev \
|
|
|
|
&& rm -rf /var/cache/apk/* \
|
2015-07-07 10:05:55 +02:00
|
|
|
&& echo '*/15 * * * * cd ~/.urlwatch && make' | crontab -
|
2015-07-07 09:44:11 +02:00
|
|
|
|
|
|
|
COPY urlwatch /root/.urlwatch
|
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"]
|