include Makefile instructions for building image from source

This commit is contained in:
Bradley Cicenas
2017-03-19 04:26:25 +00:00
parent 30530bc2a1
commit 35cc8d095d
2 changed files with 20 additions and 0 deletions

12
Dockerfile_build Normal file
View File

@@ -0,0 +1,12 @@
FROM quay.io/vektorcloud/go:1.8
RUN apk add --no-cache make
COPY glide.* /go/src/github.com/bcicen/ctop/
WORKDIR /go/src/github.com/bcicen/ctop/
RUN glide install
COPY . /go/src/github.com/bcicen/ctop
RUN make build && \
mkdir -p /go/bin && \
mv -v ctop /go/bin/