forked from cosmos/ibc-go
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile for 4.3.x (cosmos#3057)
- Loading branch information
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
FROM golang:1.20 as builder | ||
|
||
ARG IBC_GO_VERSION | ||
|
||
ENV GOPATH="" | ||
ENV GOMODULE="on" | ||
|
||
# ensure the ibc go version is being specified for this image. | ||
RUN test -n "${IBC_GO_VERSION}" | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
|
||
RUN go mod download | ||
|
||
ADD testing testing | ||
ADD modules modules | ||
ADD LICENSE LICENSE | ||
COPY testing testing | ||
COPY modules modules | ||
COPY LICENSE LICENSE | ||
|
||
COPY Makefile . | ||
|
||
RUN make build | ||
|
||
FROM ubuntu:20.04 | ||
|
||
ARG IBC_GO_VERSION | ||
|
||
LABEL "org.cosmos.ibc-go" "${IBC_GO_VERSION}" | ||
|
||
COPY --from=builder /go/build/simd /bin/simd | ||
|
||
ENTRYPOINT ["simd"] |