1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:58:52 +02:00
dockerfiles/urlwatch/Dockerfile

35 lines
826 B
Docker
Raw Normal View History

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