mirror of
https://github.com/swdee/go-rknnlite.git
synced 2025-10-05 07:16:56 +08:00
add in installing of go dependency modules to dockerfile
This commit is contained in:
@@ -94,9 +94,11 @@ ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
|||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /go/src/versiontest
|
WORKDIR /go/src/versiontest
|
||||||
|
|
||||||
# If a go.mod doesn't already exist, initialize a temporary module.
|
# Use the go.mod file of go-rknnlite so we can install its dependencies
|
||||||
# (This helps when running "go get" so that a module context is present.)
|
COPY go.mod go.sum ./
|
||||||
RUN go mod init tmp || true
|
|
||||||
|
# Fetch go-rknnlite's dependencies
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
# Set the GoCV version to build (adjust as needed)
|
# Set the GoCV version to build (adjust as needed)
|
||||||
ENV GOCV_VERSION=v0.41.0
|
ENV GOCV_VERSION=v0.41.0
|
||||||
|
Reference in New Issue
Block a user