-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (30 loc) · 993 Bytes
/
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
FROM quay.io/kwiksand/cryptocoin-base:latest
RUN useradd -m linda
ENV DAEMON_RELEASE=1.0.1.1
ENV LINDA_DATA=/home/linda/.linda
RUN apt-get install -y libgmp-dev && \
git clone https://github.com/bitcoin/secp256k1.git && \
cd secp256k1 && \
./autogen.sh && \
./configure && \
make && \
make install
USER linda
RUN cd /home/linda && \
mkdir .ssh && \
chmod 700 .ssh && \
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts && \
ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts && \
git clone --branch $DAEMON_RELEASE https://github.com/Lindacoin/Linda.git lindad && \
cd /home/linda/lindad/src && \
make -f makefile.unix && \
strip Lindad
EXPOSE 3821 3822
#VOLUME ["/home/linda/.linda"]
USER root
COPY docker-entrypoint.sh /entrypoint.sh
RUN chmod 777 /entrypoint.sh && \
chmod 755 /home/linda/lindad/src/Lindad && \
ln -s /home/linda/lindad/src/Lindad /usr/bin/
ENTRYPOINT ["/entrypoint.sh"]
CMD ["Lindad"]