Skip to content

Commit

Permalink
added env for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Manali-Jain-squareops committed Mar 6, 2023
1 parent 3e2024d commit 4b00108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker.local/validator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ COPY . $SRC_DIR
RUN cd $SRC_DIR/ && go mod download

WORKDIR $SRC_DIR/code/go/0chain.net/validator

ARG GIT_COMMIT
ENV GIT_COMMIT=$GIT_COMMIT
RUN CGO_ENABLED=1 go build -v -tags "bn256 development" -ldflags "-X github.com/0chain/blobber/code/go/0chain.net/core/build.BuildTag=$GIT_COMMIT"

# Copy the build artifact into a minimal runtime image:
Expand Down

0 comments on commit 4b00108

Please sign in to comment.