-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM golang:1.20 AS build-env | ||
|
||
# Set working directory for the build | ||
WORKDIR /go/src/github.com/cosmos/rosetta | ||
|
||
# optimization: if go.sum didn't change, docker will use cached image | ||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
# Add source files | ||
COPY . . | ||
|
||
RUN make build | ||
RUN make plugin | ||
|
||
EXPOSE 8080 | ||
|
||
# Run simd by default | ||
CMD ["./rosetta", "--blockchain", "app", "--network", "network", "--tendermint", "cosmos:26657", "--grpc", "cosmos:9090", "--addr", ":8080"] | ||
ENTRYPOINT ["./rosetta"] | ||
STOPSIGNAL SIGTERM |