forked from cosmos/ibc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (24 loc) · 785 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM golang:1.22-alpine3.20 as builder
ARG IBC_GO_VERSION
RUN set -eux; apk add --no-cache git libusb-dev linux-headers gcc musl-dev make;
ENV GOPATH=""
# ensure the ibc go version is being specified for this image.
RUN test -n "${IBC_GO_VERSION}"
# Copy relevant files before go mod download. Replace directives to local paths break if local
# files are not copied before go mod download.
ADD internal internal
ADD simapp simapp
ADD testing testing
ADD modules modules
ADD LICENSE LICENSE
COPY contrib/devtools/Makefile contrib/devtools/Makefile
COPY Makefile .
COPY go.mod .
COPY go.sum .
RUN go mod download
RUN make build
FROM alpine:3.18
ARG IBC_GO_VERSION
LABEL "org.cosmos.ibc-go" "${IBC_GO_VERSION}"
COPY --from=builder /go/build/simd /bin/simd
ENTRYPOINT ["simd"]