-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (47 loc) · 1.95 KB
/
Dockerfile
File metadata and controls
58 lines (47 loc) · 1.95 KB
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
53
54
55
56
57
58
###########################
# Builder image
###########################
FROM debian:trixie-20260421 AS builder
ARG MONERO_V=0.18.4.6
ENV MONERO_V=${MONERO_V}
# Install all build dependencies
RUN apt-get update && apt-get install -y \
build-essential cmake pkg-config git python3 python3-pip \
python3-setuptools python3-dev \
libzmq3-dev libssl-dev libunbound-dev libsodium-dev libunwind8-dev \
liblzma-dev libreadline-dev libldns-dev libexpat1-dev libpgm-dev \
qttools5-dev-tools libhidapi-dev libusb-1.0-0-dev libprotobuf-dev \
protobuf-compiler libudev-dev \
libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev \
libboost-locale-dev libboost-program-options-dev libboost-regex-dev \
libboost-serialization-dev libboost-system-dev libboost-thread-dev \
ccache doxygen graphviz libgtest-dev
# Build Google Test
WORKDIR /usr/src/gtest
RUN cmake . && make -j4 && mv lib/*.a /usr/lib/
# Clone and build Monero
WORKDIR /opt
RUN git clone -b v${MONERO_V} --recursive --depth=1 https://github.com/monero-project/monero
WORKDIR /opt/monero
RUN make -j$(nproc)
###########################
# Production image
###########################
FROM debian:trixie-20260421
ARG MONERO_V=0.18.4.6
ENV MONERO_V=${MONERO_V}
# Install runtime dependencies only
RUN apt-get update && apt-get install -y \
libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev \
libboost-program-options-dev libboost-regex-dev libboost-thread-dev \
libzmq3-dev libreadline-dev libhidapi-dev libusb-1.0-0-dev \
libunbound-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy Monero binaries
COPY --from=builder /opt/monero/build/Linux/_no_branch_/release/bin/* /usr/local/bin/
# Setup runtime directories
RUN mkdir -p /data /log
# Add configuration
COPY monerod.conf /monerod.conf
# Default command
CMD [ "monerod", "--config-file", "/monerod.conf", "--non-interactive" ]