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

Reduce docker image size #41

Closed
PrasadG193 opened this issue Feb 28, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@PrasadG193
Copy link
Member

commented Feb 28, 2019

Currently, docker image size is around 572 MB. The major reason behind that is, we are coping source code into the docker base image and building the binary there (https://github.com/infracloudio/botkube/blob/develop/build/Dockerfile). Instead we should be generating binary on local env and copy that binary into the docker image.
So we should have architecture specific build scripts (atleast linux/amd64 for now) which will generate binary and we should modify Dockerfile to just copy generated binary to docker image.
Something like this: https://github.com/fission/fission-workflows/tree/master/build

@ssudake21 ssudake21 added the bug label Feb 28, 2019

ssudake21 added a commit that referenced this issue Mar 4, 2019

Merge pull request #44 from infracloudio/infracloudio/update-docker-i…
…mage

Issue #41: Updated Dockerfile for multi-stage build

@ssudake21 ssudake21 closed this Mar 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.