-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
66 lines (51 loc) · 1.34 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Use Rust base image
FROM rust:1.84.0 as rust
# Use Rust DLC & Lightning base image
FROM dlc:0.7.1 as dlc
FROM lightning:24.11.1 as lightning
# Use Phython DLC base image
FROM cfd-dlc:0.0.8 as cfd-dlc
# Use Docker DLC
FROM docker-dlc:1.0.6 as docker-dlcc
# Use Python base image
FROM python:3.13-slim
# Define the base image for the build stage
FROM debian:stable-slim as builder
# Set ARGs for build-time variables
ARG VERSION=27.0
ARG REPO_URL=https://github.com/bitcoin/bitcoin.git
ARG VERSION_KNOTS=27.1.knots20240801
ARG DLC_VERSION=0.1.0-beta
# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
automake \
pkg-config \
libtool \
autotools-dev \
bsdmainutils \
python3 \
git \
libboost-system-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libevent-dev \
libsqlite3-dev \
libdb-dev \
libdb++-dev \
libzmq3-dev && \
rm -rf /var/lib/apt/lists/*
# Clone the repository at the specified version
RUN git clone https://github.com/bitcoin/bitcoin.git /bitcoin-source
USER bitcoin
WORKDIR /home/bitcoind
# Set the entrypoint to the bitcoind daemon
ENTRYPOINT ["bitcoind"]
# Set work directory
WORKDIR /app
# Copy requirements file
COPY requirements.txt .
# Copy the DLC logic file into the container
COPY pypi-dlc.py .
# Run the DLC logic script
CMD ["python", "pypi-dlc.py"]