2022-11-18 19:54 UTC
Everyone on mastodon loves #linux, right? Throw me a bone here.
I have Python 3.10 installed in a bioinformatics #Docker image. I want to call Python with just "python" (not "python3.10") when running the container. I can't just add an alias to .bashrc since it's running non-interactively.
Adding *echo -e '#!/bin/bash\npython3.10 "$@" ' > /usr/bin/python* + chmod to the Dockerfile kind of works, but it passes -e to Python so a warning gets thrown. Is there an alternative?
#techsupport #bash
Replies (1)
-
@Jayfitzpatrick@mastodon.ie 2022-11-18 20:06
@ash@mastodon.ie https://stackoverflow.com/questions/55346068/how-do-i-alias-python2-to-python3-in-a-docker-container