Skip to content

feat(docker): add distroless-based Docker image variant#21

Open
davinkevin wants to merge 1 commit into
pgsty:masterfrom
davinkevin:add-distroless-based-image
Open

feat(docker): add distroless-based Docker image variant#21
davinkevin wants to merge 1 commit into
pgsty:masterfrom
davinkevin:add-distroless-based-image

Conversation

@davinkevin

Copy link
Copy Markdown

Summary

  • Add a new pgsty/minio:<tag>-distroless image using gcr.io/distroless/static-debian13 for minimal attack surface (no shell, no package manager, no glibc)
  • Publishes multi-arch (amd64/arm64) images via GoReleaser alongside the existing UBI-micro images
  • New tags: pgsty/minio:<tag>-distroless and pgsty/minio:latest-distroless

Changes

  • Dockerfile.distroless — new multi-stage Dockerfile based on distroless/static-debian13
  • .github/goreleaser.yml — add distroless docker builds and manifests
  • .github/workflows/test-release.yml — trigger on Dockerfile.distroless changes

Add a new `pgsty/minio:<tag>-distroless` image using
gcr.io/distroless/static-debian13 as the base image for improved
security and minimal attack surface.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@11notes

11notes commented Apr 13, 2026

Copy link
Copy Markdown

Just as a friendly input as someone who maintains a rootless/distroless minio image. The distroless image should be the default, not an additional tag. Give users the best option from the start, not as an option they might miss.

@Vonng Vonng force-pushed the master branch 2 times, most recently from 16e34f9 to f48dbe7 Compare April 17, 2026 10:22
@teian

teian commented Jun 12, 2026

Copy link
Copy Markdown

really good input and I would also like to have the abillity to use alpine based images. that would be a awesome addition!

@11notes

11notes commented Jun 12, 2026

Copy link
Copy Markdown

@teian consider this article why distroless is better.

@teian

teian commented Jun 12, 2026

Copy link
Copy Markdown

I agree distroless is awesome but there are use cases which differ and therefore if it is not too much of a hassle it is still nice to have. Didn't want to discredit your effort/input :)

@11notes

11notes commented Jun 12, 2026

Copy link
Copy Markdown

... but there are use cases ...

I’ve never come across such a use case, can you make an example where you need an image with a shell for MinIO?

@teian

teian commented Jun 12, 2026

Copy link
Copy Markdown

Sure I can but I think my usecase does not align with your security vision therefore it does not make sense to further discuss this here. As I said before I like your proposal so I'm all for merging this :)

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.

3 participants