Skip to content

Containerization with Docker or Podman

If dockerfile is set to "y", a simple Dockerfile is added to the repository. The Dockerfile installs uv, sets up the environment, and runs foo.py when executed.

The container image can be built with:

docker build . -t my-container-image

or, if using Podman:

podman build . -t my-container-image

It can then be run in the background with:

docker run -d my-container-image

or, if using Podman:

podman run -d my-container-image

Alternatively, run it in interactive mode with:

docker run --rm -it --entrypoint bash my-container-image

or, if using Podman:

podman run --rm -it --entrypoint bash my-container-image