-
Notifications
You must be signed in to change notification settings - Fork 7
Improvements to Dockerfile #42
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
Comments
Additionally we should also consider making use of golangci-lint |
@mridulganga thanks for raising this! A few thoughts...
I wouldn't do this inside the builder. To reference the docs:
This means, you'll have a working build however it does not represent the state of your
I originally debated this one because you may have outbound-only services that are not meant to be exposed e.g: queue worker cli etc. From a template generation perspective, it would make sense to opt-in for this though. |
We already have golangci-lint as a github workflow and in the pre-commit hook setup. |
@haani-niyaz I have updated it as you suggested, additionally I also added golang:1.18.3-alpine3.16 image as the 1.18 golang image is massive 2GB+ I was not aware of golangci-lint as it wasn't mentioned in readme, perhaps we can plan and add it there too. |
@mridulganga good pickup on the image size 👍. Feel free to raise a PR to fix the image tag.
Yeah the README needs an updated. It is grossly outdated. |
@rog-golang-buddies/platform-team @haani-niyaz |
Uh oh!
There was an error while loading. Please reload this page.
The existing Dockerfile is good for a starter project, but for a template repo we should follow some best practices.
I am including the below code for reference.
The text was updated successfully, but these errors were encountered: