Skip to content

Add dockerfile #6

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add dockerfile #6

wants to merge 2 commits into from

Conversation

wwuck
Copy link

@wwuck wwuck commented May 18, 2021

Fixes #4

@wwuck
Copy link
Author

wwuck commented May 18, 2021

I wasn't sure how to tell go to only build the cli command, but I guess for such a short build time it doesn't really matter too much.

@wwuck
Copy link
Author

wwuck commented May 18, 2021

I'm also not sure if this is the correct way to build a static binary with Go but it seems to work. Needed because the final image is created from scratch so there are no extra OS or library files in the image.

https://hub.docker.com/_/scratch/

This will help when using in a CI context, eg. Jenkins
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.

jsonc docker image on docker hub?
1 participant