Skip to content

Commit b0b4e7e

Browse files
Merge pull request #27 from simonferquel/add-dockerfile
Add Dockerfile for building Kine in a container image
2 parents 0385a45 + 4175ce7 commit b0b4e7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.13.7-alpine3.11 AS builder
2+
RUN apk --no-cache add gcc musl-dev
3+
WORKDIR /go/src/github.com/rancher/kine
4+
COPY . .
5+
RUN GO111MODULE=on go build -o /bin/kine
6+
7+
FROM alpine:3.11
8+
COPY --from=builder /bin/kine /bin/kine
9+
ENTRYPOINT ["/bin/kine"]

0 commit comments

Comments
 (0)