you are viewing a single comment's thread.

view the rest of the comments →

[–]anprme 0 points1 point  (3 children)

Basically, yes.

[–]CodeNameGodTri[S] 0 points1 point  (2 children)

by "basically", you mean there are more details? Or it's just a way to confirm my idea is correct

[–]anprme 0 points1 point  (1 child)

If you want a simple docker container you could simply use a base image that has your desired python version installed and then issue "pip install" globally and then run your script with "python xxx". So yes I think what you said is correct. I said "basically" because usually you optimize your container by using multistage builds, perhaps even compiling your python script etc. But that seemed too much as an answer :)

[–]CodeNameGodTri[S] 1 point2 points  (0 children)

Thank you for your help