Commit ed5eeee2 authored by coin-server's avatar coin-server

Merge branch 'DockerContainer' into 'master'

[Docker] Added Docker File

See merge request ProjectMerge/merge!20
parents 412fd660 5cd66ca4
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
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment