Skip to content

Move go build to multistage, only copy binary#86

Merged
keithfz merged 2 commits intomainfrom
keith/multistage-build
Mar 9, 2026
Merged

Move go build to multistage, only copy binary#86
keithfz merged 2 commits intomainfrom
keith/multistage-build

Conversation

@keithfz
Copy link
Copy Markdown
Contributor

@keithfz keithfz commented Mar 9, 2026

Moves the go build portion of the Dockerfile so that we don't bloat the runtime image with build artifacts.

This makes the image half a GB smaller:

⎿  cortex-axon-agent                               test
     137e1266248f   43 seconds ago   1.81GB
     ghcr.io/cortexapps/cortex-axon-agent            0.2
     72b5ccc459cf   8 hours ago      2.31GB

@keithfz keithfz requested a review from shawnburke March 9, 2026 17:34
@keithfz keithfz marked this pull request as draft March 9, 2026 17:37
@keithfz keithfz marked this pull request as ready for review March 9, 2026 17:49
@keithfz keithfz requested a review from aszarama March 9, 2026 17:49
@aszarama
Copy link
Copy Markdown
Contributor

aszarama commented Mar 9, 2026

Verified locally, axon is working fine.

@keithfz keithfz merged commit 4456c96 into main Mar 9, 2026
16 checks passed
@keithfz keithfz deleted the keith/multistage-build branch March 9, 2026 18:57
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.

2 participants