added Dockerfile (that doesn't build)
This commit is contained in:
parent
fc6c54c834
commit
1697cbf1c7
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Executable file
12
Dockerfile
Executable file
|
|
@ -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" ]
|
||||||
Loading…
Add table
Reference in a new issue