-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
52 lines (46 loc) · 1.52 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
48
49
50
51
52
FROM ubuntu:20.04 as builder
LABEL org.opencontainers.image.title="bch-client"
LABEL org.opencontainers.image.maintainer="[email protected]"
LABEL org.opencontainers.image.url="https://www.ikna.io/"
LABEL org.opencontainers.image.description="Dockerized Bitcoin Cash client"
LABEL org.opencontainers.image.source="https://github.com/graphsense/bch-client"
ENV TZ=UTC
ADD docker/Makefile /tmp/Makefile
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
apt-get update && \
apt-get install --no-install-recommends -y \
binutils \
cmake \
build-essential \
ca-certificates \
git \
help2man \
libboost-all-dev \
libssl-dev \
ninja-build \
python3 \
wget && \
cd /tmp && \
make install && \
strip /usr/local/bin/bitcoin*
FROM ubuntu:20.04
COPY --from=builder /usr/local/bin/bitcoin* /usr/local/bin/
ARG UID=10000
RUN useradd -r -u $UID dockeruser && \
mkdir -p /opt/graphsense/data && \
chown -R dockeruser /opt/graphsense && \
# packages
apt-get update && \
apt-get install --no-install-recommends -y \
libboost-chrono1.71.0 \
libboost-filesystem1.71.0 \
libboost-program-options1.71.0 \
libboost-system1.71.0 \
libboost-thread1.71.0 \
libevent-2.1-7 \
libevent-pthreads-2.1-7 \
libminiupnpc17 \
libssl1.1
USER dockeruser
CMD ["bitcoind", "-conf=/opt/graphsense/client.conf", "-datadir=/opt/graphsense/data", "-rest"]