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

PragmaTwice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new acc9790b2 chore(build): Move environment variables from RUN to 
dedicated ENV instruction (#3477)
acc9790b2 is described below

commit acc9790b2aa2909b9c8fb8a624df8801baec43e5
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Sat May 2 20:21:04 2026 +0300

    chore(build): Move environment variables from RUN to dedicated ENV 
instruction (#3477)
    
    Remove `ENV` variables from the `RUN` instruction and use the dedicated
    `ENV` directive instead.
    
    This change eliminates the following debconf warnings that appear during
    package updates:
    
    `
    #8 5.404 debconf: unable to initialize frontend: Dialog
    #8 5.404 debconf: (TERM is not set, so the dialog frontend is not
    usable.)
    #8 5.404 debconf: falling back to frontend: Readline
    #8 5.404 debconf: unable to initialize frontend: Readline
    #8 5.404 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need
    to install the Term::ReadLine module) (@INC contains: /etc/perl
    /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0
    /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5
    /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36
    /usr/share/perl/5.36 /usr/local/lib/site_perl) at
    /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
    #8 5.404 debconf: falling back to frontend: Teletype
    `
---
 Dockerfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index f5cdf74ce..73c8ba700 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,8 +18,9 @@
 FROM debian:bookworm-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 && 
apt-get autoremove && apt-get clean
 
 WORKDIR /kvrocks
 
@@ -28,7 +29,7 @@ RUN ./x.py build --compiler=clang -DENABLE_OPENSSL=ON 
-DPORTABLE=1 -DCMAKE_BUILD
 
 FROM debian:bookworm-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