-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 1.17 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
FROM mazaclub/startcoind-base
# IMAGE mazaclub/electrum-start-server:start
MAINTAINER Rob Nelson <[email protected]>
EXPOSE 50001 50002 8000
VOLUME ["/home/coin","/var/electrum-start-server"]
ENTRYPOINT ["/sbin/my_init"]
ENV COIND localhost
ADD . /
RUN export GIT_BRANCH=$(cat .branch)
# In Order for the build to work correctly, the branch in
# docker-electrum-dash-server must match the branch in electrum-dash-server
RUN apt-get update \
&& apt-get install -y \
apg python-dev python2.7 python-pip \
git libleveldb1 libleveldb-dev
RUN echo "bitcoin hard nofile 65536" >> /etc/security/limits.conf \
&& echo "bitcoin soft nofile 65536" >> /etc/security/limits.conf \
&& cd / \
&& git clone https://github.com/mazaclub/electrum-dash-server \
&& cd /electrum-dash-server \
&& echo ${GIT_BRANCH} \
&& git checkout $(cat /.branch) \
&& python setup.py install \
&& mkdir -pv /app \
&& cp -av /electrum-dash-server/* /app \
&& rm -rf /electrum-dash-server/* \
&& rm -rf /etc/service/sshd
RUN chmod +x /etc/service/electrum-server/run