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

deployments/Dockerfile:chore - improve approach to build cli #853

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

matheusalcantarazup
Copy link
Contributor

Previously we was download the dependencies using go get, but since we
are using go modules, a better approach should be use go mod download
to download and cache all dependencies.

This commit also add a new build flags on binary to remove debug
information which will make de final binary smaller.

Signed-off-by: Matheus Alcantara matheus.alcantara@zup.com.br

- What I did

- How to verify it

- Description for the changelog

Previously we was download the dependencies using `go get`, but since we
are using go modules, a better approach should be use `go mod download`
to download and cache all dependencies.

This commit also add a new build flags on binary to remove debug
information which will make de final binary smaller.

Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
@matheusalcantarazup matheusalcantarazup merged commit a96b0ae into main Dec 7, 2021
@matheusalcantarazup matheusalcantarazup deleted the improve-dockerfile-build branch December 7, 2021 12:38
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.

3 participants