forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to build docker simpler from ubuntu to alpine
- Loading branch information
1 parent
b85f490
commit 59ad1bf
Showing
2 changed files
with
19 additions
and
25 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
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,7 +1,19 @@ | ||
FROM ubuntu:20.04 | ||
FROM golang:latest | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
apt-get -y install -y ca-certificates libssl1.1 | ||
ARG BOR_DIR=/var/lib/bor | ||
ENV BOR_DIR=$BOR_DIR | ||
|
||
ADD ./bor /app/geth | ||
ENTRYPOINT /app/geth | ||
RUN apt-get update -y && apt-get upgrade -y \ | ||
&& apt install build-essential git -y \ | ||
&& mkdir -p ${BOR_DIR} | ||
|
||
WORKDIR ${BOR_DIR} | ||
COPY . . | ||
RUN make bor | ||
|
||
RUN cp build/bin/bor /usr/local/bin/geth | ||
|
||
ENV SHELL /bin/bash | ||
EXPOSE 8545 8546 8547 30303 30303/udp | ||
|
||
ENTRYPOINT ["geth"] |