Not sure what your use case is. Generally, I'll use python as the base image instead of a bare debian. So you can ensure that, when calling python command, it always reaches to the right one. Hence, no need to use pyenv and calling source every time.
Just replace
FROM debian...
with
FROM python:3.8
and remove all the scripts relating to installing python and pyenv.
That should do.
Other dependencies should be able to be installed by apt and pip command.
note: You could find more variation of python base images here:
The only real use case is, to be able to choose Operating System to install native deps. I am pretty sure about Ubuntu and half sure about Debian. I barely trust Alpine.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Not sure what your use case is. Generally, I'll use
python
as the base image instead of a baredebian
. So you can ensure that, when callingpython
command, it always reaches to the right one. Hence, no need to use pyenv and callingsource
every time.Just replace
with
and remove all the scripts relating to installing python and pyenv.
That should do.
Other dependencies should be able to be installed by
apt
andpip
command.note: You could find more variation of python base images here:
Thanks. I forgot about that.
The only real use case is, to be able to choose Operating System to install native deps. I am pretty sure about Ubuntu and half sure about Debian. I barely trust Alpine.