Skip to content

Commit

Permalink
added dockerfile container
Browse files Browse the repository at this point in the history
  • Loading branch information
bizk committed Sep 14, 2023
1 parent c1889ed commit ec65d76
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
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

0 comments on commit ec65d76

Please sign in to comment.