This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to using vgo * update vendor dependencies remove vendor dependencies * add go modules to drone * change environment variable syntax * add environment variable to benchmark * add git as build dependency * change dockerfile logic
- Loading branch information
Showing
1,898 changed files
with
197 additions
and
751,681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
FROM golang:1.12-alpine3.10 as build | ||
RUN apk add --no-cache make | ||
WORKDIR /go/src/github.com/uswitch/kiam | ||
ADD . . | ||
FROM golang:1.12.5 as build | ||
ENV GO111MODULE=on | ||
|
||
WORKDIR /workspace | ||
# Copy the Go Modules manifests | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
# cache deps before building and copying source so that we don't need to re-download as much | ||
# and so that source changes don't invalidate our downloaded layer | ||
RUN go mod download | ||
|
||
COPY cmd/ cmd/ | ||
COPY pkg/ pkg/ | ||
COPY proto/ proto/ | ||
COPY Makefile Makefile | ||
|
||
RUN make bin/kiam-linux-amd64 | ||
|
||
FROM alpine:3.8 | ||
RUN apk --no-cache add iptables | ||
COPY --from=build /go/src/github.com/uswitch/kiam/bin/kiam-linux-amd64 /kiam | ||
COPY --from=build /workspace/bin/kiam-linux-amd64 /kiam | ||
CMD [] |
Oops, something went wrong.