Skip to content

Conversation

@sirdavos47
Copy link

Summary
Make minimal, safe improvements to the build-to-publish.sh script:

  • Respect DOCKER_COMMAND env var and prefer podman when available.
  • Ensure strict bash flags (set -euo pipefail).
  • Create ./dist with safe permissions.
  • Use --pull when building to get freshest base image.
  • Run the container as the invoking user's UID:GID to avoid root-owned files.

Changes

  • scripts/build-to-publish.sh: add env override for DOCKER_COMMAND, prefer podman, tighten bash flags, ensure dist dir, add --pull to docker build, pass UID:GID to docker/podman run.

Rationale
These are small, backward-compatible changes that reduce surprises (tool selection), ensure predictable failures, avoid file permission issues on the host, and get up-to-date base images.

@sirdavos47 sirdavos47 changed the title Title Small improvements to scripts/build-to-publish.sh Small improvements to scripts/build-to-publish.sh Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant