I am trying to figure out a way that I can install both python2.7 and 3.7 in a lightweight alpine docker image.
Currently I am using the
FROM python:3.7-alpine3.9
Base image but would like to know how to get python2 installed as well.
I am trying to figure out a way that I can install both python2.7 and 3.7 in a lightweight alpine docker image.
Currently I am using the
FROM python:3.7-alpine3.9
Base image but would like to know how to get python2 installed as well.
Use something like:
RUN apk add --no-cache python2
This will install the latest version of Python 2 as python2
or python2.7
. Python 3.7.3 will still be available using python3
, or simply python
.
python
or python2
is no longer usable. For me what worked was pinning my alpine at 3.15