Browse Source

new: dev: [Dockerfile] added =libxslt= and =xpath= commands

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cache-relation
Valentin Lab 4 years ago
parent
commit
ed1b75275a
  1. 7
      Dockerfile

7
Dockerfile

@ -3,6 +3,8 @@ FROM python:2-alpine3.7 as common
CMD ["/bin/sh"] CMD ["/bin/sh"]
RUN apk --no-cache --update add git bash yaml sed lsof findutils RUN apk --no-cache --update add git bash yaml sed lsof findutils
RUN apk --no-cache --update add libxslt
FROM common as builder FROM common as builder
@ -83,6 +85,11 @@ RUN cd /tmp && \
cd pyyaml-4.1 && \ cd pyyaml-4.1 && \
PYTHONPATH=/usr/lib/python2.7/site-packages python setup.py --with-libyaml install PYTHONPATH=/usr/lib/python2.7/site-packages python setup.py --with-libyaml install
## needed by 'xpath' script from kal-scripts for parsing html output
RUN apk add libxslt-dev && \
pip install lxml==4.5.2 html5lib==1.1 webencodings==0.5.1 && \
wget "https://git.0k.io/kal-scripts.git/plain/src/bin/xpath?h=0k/dev/master&id=e04a1b7942cb39ff2515c7f666abd33bf621b119" -O /usr/local/bin/xpath && \
chmod +x /usr/local/bin/xpath
FROM common FROM common

Loading…
Cancel
Save