[VOL-3825] Support configuration of go profiling (pprof)
Change-Id: I8c9731b420f3500b22174d1188253e7a074f2c35
diff --git a/docker/Dockerfile.openonu b/docker/Dockerfile.openonu
old mode 100644
new mode 100755
index ccb2552..ca9f7fb
--- a/docker/Dockerfile.openonu
+++ b/docker/Dockerfile.openonu
@@ -26,6 +26,8 @@
# Copy common files.
COPY . .
+ARG EXTRA_GO_BUILD_TAGS=""
+
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
@@ -35,7 +37,7 @@
# Build openonu
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
-RUN go build -mod=vendor -o /go/bin/openonu \
+RUN go build $EXTRA_GO_BUILD_TAGS -mod=vendor -o /go/bin/openonu \
-ldflags \
"-X github.com/opencord/voltha-lib-go/v4/pkg/version.version=$org_label_schema_version \
-X github.com/opencord/voltha-lib-go/v4/pkg/version.vcsRef=$org_label_schema_vcs_ref \