forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 121
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
1 parent
3bebb97
commit e774772
Showing
6 changed files
with
130 additions
and
150 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 |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# CONTAINER FOR BUILDING BINARY | ||
FROM golang:1.21 AS build | ||
|
||
# TODO: REMOVE SSH BEFORE MERGING, ONCE BEETHOVEN IS PUBLIC | ||
|
||
# SSH KEY | ||
ARG SSH_PRIVATE_KEY | ||
RUN mkdir /root/.ssh/ | ||
RUN echo "${SSH_PRIVATE_KEY}" > /root/.ssh/id_rsa | ||
RUN chmod 700 /root/.ssh/id_rsa | ||
RUN echo "Host github.com\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config | ||
RUN git config --global --add url."[email protected]:".insteadOf "https://github.com/" | ||
ENV GOPRIVATE=github.com/0xPolygon/beethoven | ||
|
||
# INSTALL DEPENDENCIES | ||
RUN go install github.com/gobuffalo/packr/v2/[email protected] | ||
COPY go.mod go.sum /src/ | ||
|
@@ -11,6 +22,9 @@ COPY . /src | |
RUN cd /src/db && packr2 | ||
RUN cd /src && make build | ||
|
||
# REMOVE SSH PRIVATE KEY | ||
RUN rm /root/.ssh/id_rsa | ||
|
||
# CONTAINER FOR RUNNING BINARY | ||
FROM alpine:3.18.0 | ||
COPY --from=build /src/dist/zkevm-node /app/zkevm-node | ||
|
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
Oops, something went wrong.