Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Add dockerfile to project (#505)
Browse files Browse the repository at this point in the history
Build the project in a Docker container for easy consumption.
  • Loading branch information
djzager authored and cdrage committed Dec 11, 2017
1 parent a91be10 commit 4cbbaa1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:1.8

WORKDIR /go/src/app
COPY . .

RUN go-wrapper download
RUN go-wrapper install
RUN go get github.com/kubernetes/kubernetes/cmd/kubectl

ENTRYPOINT ["app"]
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ all: bin
bin:
go build ${BUILD_FLAGS} -o kedge main.go

.PHONY: image
image:
docker build -t kedge -f Dockerfile .

.PHONY: install
install:
go install ${BUILD_FLAGS}
Expand Down

0 comments on commit 4cbbaa1

Please sign in to comment.