diff --git a/Dockerfile b/Dockerfile index 35dfc92..be5e4d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,7 +52,7 @@ RUN apk --update add binutils && \ ## install shyaml RUN apk add python-dev build-base -RUN apk add python-dev py-yaml && \ +RUN apk add yaml-dev cython cython-dev && \ pip install shyaml RUN pip install docker-compose==$DOCKER_COMPOSE_VERSION @@ -65,6 +65,14 @@ RUN curl -L https://git.0k.io/git-sub.git/plain/bin/git-sub > /usr/local/bin/git RUN curl http://docker.0k.io/get/ca.0k.io.pem > /usr/local/share/ca-certificates/ca.0k.io.pem +##force install pyyaml with libyaml +RUN cd /tmp && \ + wget https://github.com/yaml/pyyaml/archive/4.1.tar.gz && \ + tar xvzf 4.1.tar.gz && \ + cd pyyaml-4.1 && \ + PYTHONPATH=/usr/lib/python2.7/site-packages python setup.py --with-libyaml install + + FROM common