forked from 0xPolygon/cdk-validium-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from HorizenLabs/dev
NH M1.1
- Loading branch information
Showing
88 changed files
with
3,839 additions
and
493 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 |
---|---|---|
|
@@ -4,17 +4,18 @@ FROM golang:1.21 AS build | |
# INSTALL DEPENDENCIES | ||
RUN go install github.com/gobuffalo/packr/v2/[email protected] | ||
COPY go.mod go.sum /src/ | ||
COPY . /src | ||
RUN cd /src && go mod download | ||
|
||
# BUILD BINARY | ||
COPY . /src | ||
#COPY . /src | ||
RUN cd /src/db && packr2 | ||
RUN cd /src && make build | ||
RUN cd /src && go mod tidy && make build | ||
|
||
# CONTAINER FOR RUNNING BINARY | ||
FROM alpine:3.18.0 | ||
COPY --from=build /src/dist/zkevm-node /app/zkevm-node | ||
COPY --from=build /src/config/environments/testnet/node.config.toml /app/example.config.toml | ||
RUN apk update && apk add postgresql15-client | ||
RUN apk update && apk add postgresql15-client && cd /app/ && mkdir logs | ||
EXPOSE 8123 | ||
CMD ["/bin/sh", "-c", "/app/zkevm-node run"] |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.