diff --git a/2.7/Dockerfile b/2.7/Dockerfile index 1c5c72c..b9614bd 100644 --- a/2.7/Dockerfile +++ b/2.7/Dockerfile @@ -11,6 +11,8 @@ FROM alpine:3.4 # * python: the binaries themselves # * python-dev: are used for gevent e.g. # * py-setuptools: required only in major version 2, installs easy_install so we can install Pip. + + ENV PACKAGES="\ dumb-init \ musl \ @@ -22,6 +24,8 @@ ENV PACKAGES="\ python2 \ python2-dev \ py-setuptools \ + libxml2-dev \ + libxslt-dev \ " RUN echo \ @@ -51,6 +55,16 @@ RUN echo \ && if [[ ! -e /usr/bin/pip ]]; then ln -sf /usr/bin/pip2.7 /usr/bin/pip; fi \ && echo + +RUN pip install lxml +RUN pip install requests +RUN pip install argparse +RUN pip install xmljson +RUN pip install bs4 +RUN pip install selenium +RUN pip install nltk + + # since we will be "always" mounting the volume, we can set this up ENTRYPOINT ["/usr/bin/dumb-init"] CMD ["python"] diff --git a/2.7/onbuild/Dockerfile b/2.7/onbuild/Dockerfile index ac09e2a..1bad684 100644 --- a/2.7/onbuild/Dockerfile +++ b/2.7/onbuild/Dockerfile @@ -1,5 +1,8 @@ FROM jfloff/alpine-python:2.7 + + + # Copy in the entrypoint script -- this installs prerequisites on container start. COPY entrypoint.sh /entrypoint.sh diff --git a/latest/Dockerfile b/latest/Dockerfile index 6deb234..2e9c983 100644 --- a/latest/Dockerfile +++ b/latest/Dockerfile @@ -20,6 +20,8 @@ ENV PACKAGES="\ ca-certificates \ python3 \ python3-dev \ + libxml2-dev \ + libxslt-dev \ " RUN echo \ @@ -51,5 +53,12 @@ RUN echo \ && if [[ ! -e /usr/bin/pip ]]; then ln -sf /usr/bin/pip3 /usr/bin/pip; fi # since we will be "always" mounting the volume, we can set this up +RUN pip install lxml +RUN pip install requests +RUN pip install argparse +RUN pip install xmljson + + + ENTRYPOINT ["/usr/bin/dumb-init"] CMD ["python"]