Based on @rouja's comment, this is a bad practice, running a docker image as root. Added a User instruction with a default non-root user.
Add a minimal docker file to run the FastAPI server.