title: On openjdk:7-jre-alpine docker how to install python 3.6
body: <p>Up until about a week ago I was successfully using python 3.6 scripts on a java image like this: </p>
  
  <pre><code>FROM openjdk:7-jre-alpine
  
  RUN apk update \
      &amp;&amp; apk upgrade \
      &amp;&amp; apk add --no-cache bash \
      &amp;&amp; apk add --no-cache --virtual=build-dependencies unzip \
      &amp;&amp; apk add --no-cache curl \
      &amp;&amp; apk add --no-cache go
  
  RUN apk add --no-cache python3 &amp;&amp; \
      python3 -m ensurepip &amp;&amp; \
      rm -r /usr/lib/python*/ensurepip &amp;&amp; \
      pip3 install --upgrade pip setuptools &amp;&amp; \
      if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi &amp;&amp; \
      if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 
  /usr/bin/python; fi &amp;&amp; \
      rm -r /root/.cache &amp;&amp; \
      pip install kubernetes
  </code></pre>
  
  <p>now this dockerfile fails at the line</p>
  
  <pre><code>&amp;&amp; apk add --no-cache bash \
  </code></pre>
  
  <p>And the only solution I found was to comment out the build dependancies and bring them thus:</p>
  
  <pre><code>    &amp;&amp; echo -e "http://nl.alpinelinux.org/alpine/v3.5/main\nhttp://nl.alpinelinux.org/alpine/v3.5/community" &gt; /etc/apk/repositories \
  &amp;&amp; apk add --no-cache bash \
  #&amp;&amp; apk add --no-cache --virtual=build-dependencies unzip \
  </code></pre>
  
  <p>This fix installs python version 3.52 instead of 3.6</p>
  
  <p>How do I install python 3.6 [or any version I want] on <a href="https://hub.docker.com/_/java/" rel="noreferrer">openjdk:7-jre-alpine</a> docker?</p>
  
  <p>Update:
  Now all the alpine options are failing</p>