File tree Expand file tree Collapse file tree
development/qnet-integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # PRODUCTION QNet Node Dockerfile - Latest Rust and dependencies
2- FROM rust:1.93-slim AS builder
1+ # PRODUCTION QNet Node Dockerfile - Ubuntu 22.04 (glibc 2.35)
2+ FROM ubuntu:22.04 AS builder
33
44LABEL maintainer="QNet Development Team"
55LABEL description="Production QNet Blockchain Node"
66LABEL version="2.0.0"
77
8- # Install minimal system dependencies
8+ # Prevent interactive prompts during build
9+ ENV DEBIAN_FRONTEND=noninteractive
10+
11+ # Install build dependencies + Rust
912RUN apt-get update && apt-get install -y \
13+ curl \
1014 pkg-config \
1115 libssl-dev \
1216 libclang-dev \
1317 zlib1g-dev \
1418 build-essential \
15- && rm -rf /var/lib/apt/lists/*
19+ && rm -rf /var/lib/apt/lists/* \
20+ && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.93.0
21+
22+ ENV PATH="/root/.cargo/bin:${PATH}"
1623
1724# Set working directory
1825WORKDIR /build
@@ -32,8 +39,10 @@ RUN cargo build --profile release-fast --bin qnet-node \
3239 && strip target/release-fast/qnet-node \
3340 && cp target/release-fast/qnet-node /usr/local/bin/
3441
35- # Production runtime image
36- FROM debian:bookworm-slim
42+ # Production runtime image — same Ubuntu 22.04 for glibc compatibility
43+ FROM ubuntu:22.04
44+
45+ ENV DEBIAN_FRONTEND=noninteractive
3746
3847# Install minimal runtime dependencies including gosu for user switching
3948RUN apt-get update && apt-get install -y \
You can’t perform that action at this time.
0 commit comments