Skip to content

Commit f3887a1

Browse files
AIQnetLabclaude
andcommitted
fix: Dockerfile base image to Ubuntu 22.04 for glibc compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3f564b9 commit f3887a1

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

development/qnet-integration/Dockerfile.production

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
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

44
LABEL maintainer="QNet Development Team"
55
LABEL description="Production QNet Blockchain Node"
66
LABEL 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
912
RUN 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
1825
WORKDIR /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
3948
RUN apt-get update && apt-get install -y \

0 commit comments

Comments
 (0)