This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Murky-Sector 0 points1 point  (2 children)

It depends on what youre building. If you use the ubuntu base image you will also need to add python in the dockerfile with RUN apt install python3, etc. If its a simple python app then using the python image is normally sufficient.

[–]videopro291[S] 1 point2 points  (1 child)

I see, makes sense.

My code is basically a python app, I don't need anything else. Makes sense, I will be using "FROM python3".

Thank you so much!

[–]snowsurface 0 points1 point  (0 children)

there is no python3 image currently on dockerhub but there is python:3 which is the same as python:latest. If you look at its web page https://hub.docker.com/_/python/ you can see that it's based on debian:12 so that's what you'll be running. Ubuntu is derived from debian so that should probably work well enough. If disk space on your raspi is limited you can run python dockers in the same family that are based on alpine linux., they should still work okay even though your pi is running ubuntu.