-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (31 loc) · 1.04 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
FROM alpine:3.6
LABEL maintainer="Aviator" \
discord="Aviator#1024"
ENV DB_VERSION=4.8.30.NC
RUN deps="alpine-sdk curl autoconf automake libtool boost-dev openssl-dev libevent-dev git" && \
apk add --no-cache -U $deps dumb-init boost boost-program_options libevent libssl1.0 && \
curl -L http://download.oracle.com/berkeley-db/db-$DB_VERSION.tar.gz \
| tar zx && \
cd /db-$DB_VERSION/build_unix && \
../dist/configure \
--prefix=/opt/db \
--enable-cxx \
--disable-shared \
--with-pic && \
make install && \
mkdir /wallet &&\
cd /wallet && \
git clone https://gitlab.projectmerge.org/ProjectMerge/merge.git . &&\
./autogen.sh && \
./configure LDFLAGS=-L/opt/db/lib CPPFLAGS=-I/opt/db/include && \
make install && \
strip /usr/local/bin/merged &&\
strip /usr/local/bin/merge-cli &&\
rm /usr/local/bin/merge-tx &&\
adduser -D wallet && \
apk del $deps && \
rm -r /opt/db/docs /var/cache/apk/* /wallet /db-$DB_VERSION
VOLUME ["/home/wallet/.merge"]
EXPOSE 52000/tcp
USER wallet
CMD merged -printtoconsole