-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (21 loc) · 854 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
FROM quay.io/kwiksand/cryptocoin-base:latest
RUN useradd -m digibyte
ENV DIGIBYTE_DATA=/home/digibyte/.digibyte
USER digibyte
RUN cd /home/digibyte && \
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 https://github.com/digibyte/digibyte.git digibyted && \
cd /home/digibyte/digibyted && \
./autogen.sh && \
./configure LDFLAGS="-L/home/digibyte/db4/lib/" CPPFLAGS="-I/home/digibyte/db4/include/" && \
make
EXPOSE 12024 14022
#VOLUME ["/home/digibyte/.digibyte"]
USER root
COPY docker-entrypoint.sh /entrypoint.sh
RUN chmod 777 /entrypoint.sh && cp /home/digibyte/digibyted/src/digibyted /usr/bin/digibyted && chmod 755 /usr/bin/digibyted
ENTRYPOINT ["/entrypoint.sh"]
CMD ["digibyted"]