Skip to content

Commit

Permalink
multi stage dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rusenask committed Jun 14, 2017
1 parent 359ff0e commit 98f35fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM golang:1.8.1-alpine
COPY . /go/src/github.com/rusenask/keel
WORKDIR /go/src/github.com/rusenask/keel
RUN apk add --no-cache git && go get
RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags -'w' -o keel .

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY keel /bin/keel
COPY --from=0 /go/src/github.com/rusenask/keel/keel /bin/keel
ENTRYPOINT ["/bin/keel"]

EXPOSE 9300

0 comments on commit 98f35fe

Please sign in to comment.