Skip to content

Conversation

@pfarikrispy
Copy link

  • separate build into stage
  • isolate base image and apt-get
  • isolate the app build
  • copy only the app into a secure Chainguard Python image that's updated frequently
  • group stmnts for less layers
  • use image tag SHAs for more (supply chain) security
  • make non-root user explicit in final stage
  • smaller image that's also more secure

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 90.54% (+0.9%) from 89.619%
when pulling 3030521 on pfarikrispy:multistage
into f01e5ec on chiefonboarding:master.

Copy link
Member

@GDay GDay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! First time hearing about chainguard, looks good. One question before I merge this.


CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
# checkov:skip=CKV_DOCKER_7: zero-CVE fresh image every build
FROM cgr.dev/chainguard/python:latest@sha256:136aad7020e00a98f617f3d3343cc7601b7823405eb2bc581eae5f5a8c21e8d0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be 3.13 instead of latest? It looks like latest will download python 3.14?

@pfarikrispy
Copy link
Author

pfarikrispy commented Nov 26, 2025 via email

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