Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@RaeesBhatti
Copy link
Contributor

The building of the binary should be done on host. Go can build static binaries for any platform, so, why ship the whole build env with the application!

@RaeesBhatti RaeesBhatti requested a review from mthenw February 27, 2018 14:54
Copy link
Contributor

@mthenw mthenw left a comment

Choose a reason for hiding this comment

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

What are the size benefits here comparing to old approach?

RUN dep ensure
RUN go build -o event-gateway cmd/event-gateway/main.go

FROM alpine:3.6
Copy link
Contributor

Choose a reason for hiding this comment

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

You could just replace this part.

@RaeesBhatti RaeesBhatti force-pushed the minimalize-dockerfile branch from 9af7a1a to c59ef84 Compare February 28, 2018 09:56
@mthenw mthenw merged commit c955490 into master Mar 2, 2018
@mthenw mthenw deleted the minimalize-dockerfile branch March 2, 2018 08:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants