[VOL-3090] Adding profiler to ofagent-go
Change-Id: I846091a528a54a91af933d3fd6f888fb1d96295f
diff --git a/docker/Dockerfile.ofagent-go b/docker/Dockerfile.ofagent-go
index b99dcbe..dff2d99 100644
--- a/docker/Dockerfile.ofagent-go
+++ b/docker/Dockerfile.ofagent-go
@@ -27,9 +27,11 @@
ARG org_opencord_vcs_commit_date=unknown
ARG org_opencord_vcs_dirty=unknown
+ARG EXTRA_GO_BUILD_TAGS=""
+
# Build ofagent-go
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
-RUN go build -mod=vendor -o /build/ofagent \
+RUN go build $EXTRA_GO_BUILD_TAGS -mod=vendor -o /build/ofagent \
-ldflags \
"-X github.com/opencord/voltha-lib-go/v2/pkg/version.version=$org_label_schema_version \
-X github.com/opencord/voltha-lib-go/v2/pkg/version.vcsRef=$org_label_schema_vcs_ref \