Skip to content

modify Dockerfile#30

Open
jaba0x wants to merge 1 commit into
ExpressenAB:masterfrom
jaba0x:patch-1
Open

modify Dockerfile#30
jaba0x wants to merge 1 commit into
ExpressenAB:masterfrom
jaba0x:patch-1

Conversation

@jaba0x

@jaba0x jaba0x commented Jun 29, 2021

Copy link
Copy Markdown

update govendor & add go init cmds

update govendor & add go init cmds
@kgaughan

kgaughan commented May 7, 2023

Copy link
Copy Markdown

This project is essentially dead, but I don't think you'd get it merged anyway. The reason why everything was on one line was to avoid leaving any detritus in the image after the build completed and separating everything out to seperate RUN commands means you're going to end up with a lot of crap left over in the image.

A better route to take would be multistage builds, as that way you're only left with what you actually want in the final image.

On #27, I updated the dockerfile to build the binary separately and copy it into the final container. The final image is ~18MB, and just includes Alpine Linux (7.5MB), the latest ca-certificates package (.5MB), and the bigip_exporter binary itself (10MB).

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