forked from graphsense/btc-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (29 loc) · 916 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
FROM alpine:3.7
LABEL maintainer="[email protected]"
RUN apk --no-cache add make bash boost boost-program_options libevent libressl shadow && \
useradd -r -u 10000 dockeruser && \
mkdir -p /opt/graphsense/data && \
chown dockeruser /opt/graphsense
ADD docker/paicoin.conf /opt/graphsense/paicoin.conf
ADD docker/Makefile /tmp/Makefile
RUN apk --no-cache --virtual build-dependendencies add \
linux-headers \
libressl-dev \
g++ \
boost-dev \
file \
autoconf \
automake \
libtool \
libevent-dev \
git \
coreutils \
binutils \
grep && \
cd /tmp; make install && \
rm -rf /tmp/src && \
strip /usr/local/bin/*paicoin* && \
apk del build-dependendencies
USER dockeruser
EXPOSE 8332
CMD paicoind -conf=/opt/graphsense/paicoin.conf -datadir=/opt/graphsense/data -daemon -rest && bash