Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquanghiep committed Sep 7, 2024
1 parent 3f07cd6 commit 44bbd52
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions contrib/images/babylond/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
FROM --platform=$BUILDPLATFORM golang:1.21 AS build-env
FROM 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=""

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

Expand Down

0 comments on commit 44bbd52

Please sign in to comment.