Skip to content

Commit 46f7204

Browse files
authored
Modify Dockerfile to add Python build dependencies
Updated Dockerfile to include build dependencies for Python 3.11.
1 parent fdf7a7a commit 46f7204

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN mkdir build && cd build && \
2121
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF && \
2222
make -j$(nproc) ailee_node
2323

24+
2425
# ============================
2526
# Stage 2 — Runtime Image
2627
# ============================
@@ -30,9 +31,10 @@ ENV DEBIAN_FRONTEND=noninteractive \
3031
PYTHONUNBUFFERED=1 \
3132
PYTHONDONTWRITEBYTECODE=1
3233

33-
# Install Python 3.11 + runtime libs
34+
# Install Python 3.11 + runtime libs + build deps (REQUIRED for psutil)
3435
RUN apt-get update && apt-get install -y --no-install-recommends \
3536
python3.11 python3-pip python3.11-venv \
37+
gcc python3-dev build-essential \
3638
curl libssl3 libcurl4 libzmq5 libjsoncpp25 \
3739
libyaml-cpp0.7 librocksdb6.11 libstdc++6 procps \
3840
ca-certificates \
@@ -66,6 +68,7 @@ COPY --from=cpp-builder --chown=ailee:ailee /build/build/ailee_node ./ailee_node
6668
COPY --from=cpp-builder --chown=ailee:ailee /build/config ./config
6769
RUN chmod +x ./ailee_node
6870

71+
6972
# ============================
7073
# Start Script (Heredoc Safe)
7174
# ============================

0 commit comments

Comments
 (0)