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.
Merge pull request #92 from 0xPolygon/fix-goreleaser
Fix binary names and remove cd
- Loading branch information
Showing
2 changed files
with
4 additions
and
5 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 |
---|---|---|
|
@@ -10,12 +10,11 @@ before: | |
hooks: | ||
- go mod download | ||
- go install github.com/gobuffalo/packr/v2/[email protected] | ||
- cd db | ||
- packr2 | ||
|
||
builds: | ||
- main: ./cmd/ | ||
binary: dist/zkevm-node | ||
binary: zkevm-node | ||
goos: | ||
- linux | ||
- darwin | ||
|
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,15 +1,15 @@ | ||
FROM alpine:3.18 | ||
|
||
COPY dist/zkevm-node /app/zkevm-node | ||
COPY zkevm-node /app/zkevm-node | ||
|
||
EXPOSE 8123 | ||
|
||
RUN addgroup -S zkevm-group \ | ||
&& adduser -S zkevm-user -G zkevm-group | ||
|
||
RUN chown -R /app zkevm-user:zkevm-group | ||
RUN chown -R zkevm-user:zkevm-group /app | ||
|
||
USER zkevm-user | ||
|
||
CMD ["/bin/sh", "-c", "/app/zkevm-node"] | ||
CMD ["/app/zkevm-node"] | ||
|