Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify Dockerfile #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

modify Dockerfile #30

wants to merge 1 commit into from

Conversation

jaba0x
Copy link

@jaba0x jaba0x commented Jun 29, 2021

update govendor & add go init cmds

update govendor & add go init cmds
@kgaughan
Copy link

kgaughan commented May 7, 2023

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