-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
49 lines (43 loc) · 1.41 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
FROM ubuntu:24.04 as builder
LABEL org.opencontainers.image.title="bch-client"
LABEL org.opencontainers.image.maintainer="contact@ikna.io"
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:24.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-all-dev \
libfmt9 \
libevent-core-2.1-7t64 \
libevent-pthreads-2.1-7t64 \
libminiupnpc17 \
libssl-dev
USER dockeruser
CMD ["bitcoind", "-conf=/opt/graphsense/client.conf", "-datadir=/opt/graphsense/data", "-rest"]