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

Dockerfile - add decK to path #34

Merged
merged 1 commit into from
Jul 18, 2019
Merged

Dockerfile - add decK to path #34

merged 1 commit into from
Jul 18, 2019

Conversation

davidcv5
Copy link
Contributor

Current Dockerfile builds under /deck directory the deck binary, then adds the full directory with all source code to the image, then calls deck inside that directory.

The proposed change does the following:

  • upgrade to latest alpine image, currently 3.10
  • copies only the deck binary into the final image at /usr/local/bin so it can be in the PATH
  • uses just deck as the entrypoint since it's in the PATH

Current Dockerfile builds under `/deck` directory the `deck` binary, then adds the full directory with all source code to the image, then calls deck inside that directory.
The proposed change does the following:
- upgrade to latest `alpine` image
- copies only the `deck` binary into the final image at `/usr/local/bin` so it can be in the `PATH`
- uses just `deck` as the entrypoint since it's in the `PATH`
Copy link
Member

@hbagdi hbagdi left a comment

Choose a reason for hiding this comment

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

Tested locally and it works.

My Dockerfile-fu is pretty poor and this PR clearly shows that!
The Docker images size came down to 20 MB too.

Thank you @davidcv5!

@hbagdi hbagdi merged commit 70a2823 into Kong:master Jul 18, 2019
@davidcv5
Copy link
Contributor Author

Awesome.. thank you!

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