-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (38 loc) · 1.71 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Use an official Ubuntu runtime as a parent image
FROM ubuntu:bionic
# Set the working directory in the container to /app
WORKDIR /app
# Set environment variables to disable prompt during package installation and set the timezone
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Warsaw
#ENV MAKEFLAGS=-j
# Install any needed packages specified in requirements.txt
RUN apt update && apt install software-properties-common -y --no-install-recommends && add-apt-repository ppa:bitcoin/bitcoin
RUN apt-get update
RUN apt-get install libdb5.3-dev libdb5.3++-dev -y --no-install-recommends
RUN apt-get update && \
apt-get install -y --no-install-recommends libdb++-dev git build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 software-properties-common tzdata libboost-all-dev libssl-dev libevent-dev wget libzmq3-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Build Berkeley DB
RUN wget http://download.oracle.com/berkeley-db/db-5.3.28.NC.tar.gz && \
tar -xvf db-5.3.28.NC.tar.gz && \
cd db-5.3.28.NC/build_unix/ && \
../dist/configure --enable-cxx && \
make && \
make install && \
cd /app && \
rm -rf db-5.3.28.NC db-5.3.28.NC.tar.gz
# Clone the Dogecoin Core repository
RUN git clone https://github.com/dogecoin/dogecoin.git
# Change the working directory to the cloned repository
WORKDIR /app/dogecoin
# Build the project according to the instructions
RUN ./autogen.sh
RUN ./configure BDB_LIBS="-L/usr/local/BerkeleyDB.5.3/lib -ldb_cxx-5.3" BDB_CFLAGS="-I/usr/local/BerkeleyDB.5.3/include"
RUN make
RUN make install
# Make port 80 available to the world outside this container
EXPOSE 80
# Run the application when the container launches
CMD ["dogecoind"]