-
Notifications
You must be signed in to change notification settings - Fork 56
/
Dockerfile
49 lines (37 loc) · 1.38 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ethereum playground for private networks
# Playground Ethereum para redes privadas
# Why not the official image?
# Until 1.7.2 the public image does NOT contain tools beyond geth,
# so we build a new just like the original Dockerfile suggests.
# It seems that future image releases will carry these binaries.
FROM ubuntu:latest
LABEL maintainer="[email protected]"
ARG GETH_URL=https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.7.2-1db4ecdc.tar.gz
ARG GETH_MD5=c17c164d2d59d3972a2e6ecf922d2093
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install wget -y && \
cd /tmp && \
wget "$GETH_URL" -q -O /tmp/geth-alltools-linux-amd64.tar.gz && \
echo "$GETH_MD5 geth-alltools-linux-amd64.tar.gz" > /tmp/geth-alltools-linux-amd64.tar.gz.md5 && \
md5sum -c /tmp/geth-alltools-linux-amd64.tar.gz.md5 && \
tar -xzf /tmp/geth-alltools-linux-amd64.tar.gz -C /usr/local/bin/ --strip-components=1 && \
rm -f /usr/local/bin/COPYING && \
rm -f /tmp/geth-alltools-*
ENV GEN_NONCE="0xeddeadbabeeddead" \
DATA_DIR="/root/.ethereum" \
CHAIN_TYPE="private" \
RUN_BOOTNODE=false \
GEN_CHAIN_ID=1981 \
BOOTNODE_URL=""
WORKDIR /opt
# like ethereum/client-go
EXPOSE 30303
EXPOSE 8545
# bootnode port
EXPOSE 30301
EXPOSE 30301/udp
ADD src/* /opt/
RUN chmod +x /opt/*.sh
#CMD ["/opt/startgeth.sh"]
ENTRYPOINT ["/opt/startgeth.sh"]