Update README examples, unit test URIs, and Docker images to use testnet ports 46941 (daemon) and 46944 (wallet RPC). The docker-compose.yml and integration test base already used testnet ports; this aligns all remaining references consistently. Co-Authored-By: Charon <charon@lethean.io>
38 lines
1.2 KiB
Docker
38 lines
1.2 KiB
Docker
FROM ubuntu:22.04 AS builder
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential cmake git wget \
|
|
libboost-all-dev libssl-dev libunwind-dev \
|
|
pkg-config && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG LTHN_BRANCH=master
|
|
RUN git clone --depth 1 --branch ${LTHN_BRANCH} --recursive \
|
|
https://github.com/lethean-io/lethean.git /lethean
|
|
|
|
WORKDIR /lethean/build
|
|
RUN cmake .. -DCMAKE_BUILD_TYPE=Release && \
|
|
make -j$(nproc) daemon simplewallet
|
|
|
|
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
libboost-filesystem1.74.0 libboost-thread1.74.0 \
|
|
libboost-program-options1.74.0 libboost-regex1.74.0 \
|
|
libboost-serialization1.74.0 libboost-system1.74.0 \
|
|
libboost-date-time1.74.0 libboost-chrono1.74.0 \
|
|
libboost-locale1.74.0 \
|
|
libssl3 libunwind8 curl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=builder /lethean/build/src/letheand /usr/local/bin/letheand
|
|
COPY --from=builder /lethean/build/src/simplewallet /usr/local/bin/simplewallet
|
|
|
|
RUN mkdir -p /data /wallet
|
|
|
|
VOLUME ["/data", "/wallet"]
|
|
|
|
EXPOSE 46941 46942
|
|
|
|
ENTRYPOINT ["letheand"]
|
|
CMD ["--testnet", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=46941", "--data-dir=/data"]
|