-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
42 lines (41 loc) · 1.62 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
# version: 0.0.2
# author: VS <[email protected]>
# description: Dockerized Mist - Ethereum Wallet (https://github.com/ethereum/mist)
#
# run a container
#
# docker run --rm \
# -v ~/Downloads/mist:/home/mist/Downloads \
# -v ~/.config/Ethereum\ Wallet:/home/mist/.config/Ethereum\ Wallet \
# -v ~/.ethereum:/home/mist/.ethereum \
# -v ~/.themes:/home/mist/.themes:ro \
# -v ~/.fonts:/home/mist/.fonts:ro \
# -v ~/.icons:/home/mist/.icons:ro \
# -v ~/.gtkrc-2.0:/home/mist/.gtkrc-2.0:ro \
# -v /usr/share/themes:/usr/share/themes:ro \
# -v /usr/share/fonts:/usr/share/fonts:ro \
# -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY loadaverage/mist
FROM debian:stretch
ENV geth_mist_dir "/home/mist/Geth"
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -yqq && \
apt-get install libgtk2.0-0 \
libxtst6 \
libxss1 \
libgconf-2-4 \
libnss3 \
libasound2 \
wget \
ntp \
procps \
ca-certificates \
unzip --no-install-recommends -yqq && \
useradd -m -s /bin/bash mist && \
su mist -c "cd && \
wget --quiet 'https://github.com/ethereum/mist/releases/download/v0.8.9/Ethereum-Wallet-linux64-0-8-9.zip' -O mist.zip && \
wget --quiet 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.5.9-a07539fb.tar.gz' -O geth.tar.gz && \
unzip mist.zip && \
mkdir -p ${geth_mist_dir} && tar --strip 1 -C ${geth_mist_dir} -xf /home/mist/geth.tar.gz && \
rm geth.tar.gz mist.zip"
USER mist
WORKDIR /home/mist/linux-unpacked
CMD ["/bin/bash", "-c", "(nohup $geth_mist_dir/geth >/dev/null 2>&1 &)&& ./ethereumwallet"]