Skip to content

Switch Docker image to Alpine multi-stage build - #26

Merged
fsistemas merged 1 commit into
masterfrom
feature/FRA-255
Jun 23, 2026
Merged

Switch Docker image to Alpine multi-stage build#26
fsistemas merged 1 commit into
masterfrom
feature/FRA-255

Conversation

@fsistemas

Copy link
Copy Markdown
Owner

Moves the official Docker image to an Alpine base with a multi-stage build, producing a smaller image (~99 MB) that continues to run as a non-root user.

The PostgreSQL driver is compiled from source in the build stage (no musl wheel), and only the runtime venv plus libpq ship in the final image.

Verified locally:

  • amd64 and arm64 multi-arch build and run
  • PostgreSQL, MySQL, and SQLite queries (named, connection-scoped, and parametrized)
  • JSON / CSV / Excel output
  • Runs as non-root (uid=1000)

Docs: RELEASING.md notes the source-compile of the driver (slower arm64 leg under emulation) and the cached-arch example is updated.

@fsistemas
fsistemas merged commit c6ea103 into master Jun 23, 2026
6 checks passed
@fsistemas
fsistemas deleted the feature/FRA-255 branch June 23, 2026 21:00
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