diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..9c5ed52 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM yveshield/gocv-alpine:4.1.1-buildstage as build-stage +RUN go get -u -d gocv.io/x/gocv +ADD . /StreamWatcher +RUN cd $GOPATH/src/gocv.io/x/gocv && go build -o $GOPATH/bin/gocv-version ./cmd/version/main.go +RUN $GOPATH/bin/gocv-version +RUN cd $GOPATH/src/gocv.io/x/gocv && go build -o $GOPATH/bin/StreamWatcher /StreamWatcher/*.go + +FROM yveshield/gocv-alpine:4.1.1-runtime + +COPY --from=build-stage /go/bin/StreamWatcher /StreamWatcher + +ENTRYPOINT [ "/StreamWatcher" ] \ No newline at end of file