mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-30 09:16:58 +02:00
ff2d0edde7
add `pip install cssselect`
35 lines
828 B
Docker
35 lines
828 B
Docker
#
|
|
# 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 \
|
|
&& pip install cssselect \
|
|
futures \
|
|
keyring \
|
|
lxml \
|
|
urlwatch \
|
|
pyyaml \
|
|
&& apk del build-base \
|
|
libxml2-dev \
|
|
libxslt-dev \
|
|
python-dev \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& echo '*/15 * * * * cd ~/.urlwatch && make' | crontab -
|
|
|
|
COPY urlwatch /root/.urlwatch
|
|
VOLUME /root/.urlwatch
|
|
WORKDIR /root/.urlwatch
|
|
|
|
CMD ["crond", "-f", "-L", "/dev/stdout"]
|