This is an automated email from the ASF dual-hosted git repository.

aleksraiden pushed a commit to branch aleksraiden-patch-2
in repository https://gitbox.apache.org/repos/asf/kvrocks.git

commit c8bb70b912888e44cdecaa5769985681bdcb3302
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Sat May 2 18:13:00 2026 +0300

    Update Dockerfile to use stable Debian version
---
 Dockerfile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index f5cdf74ce..e40305457 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,20 +15,21 @@
 # specific language governing permissions and limitations
 # under the License.
 
-FROM debian:bookworm-slim AS build
+FROM debian:stable-slim AS build
 
 ARG MORE_BUILD_ARGS
+ENV DEBIAN_FRONTEND=noninteractive
 
-RUN DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && 
apt-get -y --no-install-recommends install git build-essential autoconf cmake 
libtool python3 libssl-dev clang && apt-get autoremove && apt-get clean
+RUN apt-get update && apt-get upgrade -y && apt-get -y --no-install-recommends 
install git build-essential autoconf cmake libtool python3 libssl-dev clang 
ca-certificates && apt-get autoremove && apt-get clean
 
 WORKDIR /kvrocks
 
 COPY . .
-RUN ./x.py build --compiler=clang -DENABLE_OPENSSL=ON -DPORTABLE=1 
-DCMAKE_BUILD_TYPE=Release -j $(nproc) $MORE_BUILD_ARGS
+RUN ./x.py build --compiler=clang -DCMAKE_EXE_LINKER_FLAGS="-latomic" 
-DENABLE_OPENSSL=ON -DPORTABLE=1 -DCMAKE_BUILD_TYPE=Release -j $(nproc) 
$MORE_BUILD_ARGS
 
-FROM debian:bookworm-slim
+FROM debian:stable-slim
 
-RUN DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && 
apt-get -y install openssl ca-certificates redis-tools binutils && apt-get clean
+RUN apt-get update && apt-get upgrade -y && apt-get -y install openssl 
ca-certificates redis-tools binutils && apt-get clean
 
 # Create a dedicated non-root user and group
 RUN groupadd --gid=999 -r kvrocks && useradd --uid=999 -r -g kvrocks kvrocks

Reply via email to