Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

use multistage build Dockerfile #142

Merged
merged 4 commits into from
Aug 13, 2018
Merged

use multistage build Dockerfile #142

merged 4 commits into from
Aug 13, 2018

Conversation

roffe
Copy link
Contributor

@roffe roffe commented Aug 13, 2018

Closes #100

Copy link
Contributor

@pingles pingles left a comment

Choose a reason for hiding this comment

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

Thanks for all these suggestions @roffe, I've added some notes throughout- hope that's cool.

.drone.yml Outdated
image: golang:1.10
commands:
- make build-linux
# build:
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you delete the commented section please

@@ -0,0 +1,4 @@
bin
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this include .git also?

Thanks for adding this- be useful to exclude as much as we can.

Dockerfile Outdated
RUN apk add --no-cache make
WORKDIR /go/src/github.com/uswitch/kiam
ADD . .
RUN make proto/service.pb.go build-linux
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we simplify the Makefile so that the default is to build the binary and have it manage the rest please?

@roffe
Copy link
Contributor Author

roffe commented Aug 13, 2018

something like this?

@pingles pingles merged commit e7e82a5 into uswitch:master Aug 13, 2018
@pingles
Copy link
Contributor

pingles commented Aug 13, 2018

Thanks @roffe

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