diff --git a/contrib/images/babylond/Dockerfile b/contrib/images/babylond/Dockerfile index aa0f59e3f..c243ae5e4 100644 --- a/contrib/images/babylond/Dockerfile +++ b/contrib/images/babylond/Dockerfile @@ -1,7 +1,5 @@ FROM --platform=$BUILDPLATFORM golang:1.21 AS build-env -# Version to build. Default is empty -ARG VERSION ARG BUILD_TAGS="" ARG LEDGER_ENABLED="false" ARG COSMOS_BUILD_OPTIONS="" @@ -11,12 +9,6 @@ ARG TARGETOS TARGETARCH WORKDIR /go/src/github.com/babylonlabs-io/babylon COPY ./ /go/src/github.com/babylonlabs-io/babylon/ -# Handle if version is set -RUN if [ -n "${VERSION}" ]; then \ - git fetch origin tag ${VERSION} --no-tags; \ - git checkout -f ${VERSION}; \ - fi - # Cache mod dependencies RUN go mod download