Marea.Plugins.Docker.Python (marea v0.0.1-rc.1)

Copy Markdown View Source

Adds a Python venv to the generated Docker image of a release.

Optional. Enable by listing Marea.Plugins.Docker.Python under plugins: in marea.yaml. Pulls in Marea.Plugins.Docker transitively.

Schema contributions:

  • releases.<r>.docker.python: { version, requirements } — release-level Python configuration, nested inside the Docker plugin's docker: block.

Dockerfile contributions: implements Marea.Plugins.Docker.marea_dockerfile_assigns/2 to inject:

  • a python-builder stage that installs python3 and uses uv to build a venv with the requested requirements;
  • an app-stage step that copies /opt/venv from the builder, adds python3 to the runtime image, and reassigns ownership.

See the Docker / Python Plugin guide.