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

twice 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 5744d1b9 build: Change base Docker image from Alpine to Debian (#2348)
5744d1b9 is described below

commit 5744d1b9c540266a68e1a9ab8d37f5d656650b27
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Mon Jun 3 05:28:00 2024 +0300

    build: Change base Docker image from Alpine to Debian (#2348)
---
 Dockerfile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 4ea544de..0ade7dca 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,28 +15,29 @@
 # specific language governing permissions and limitations
 # under the License.
 
-FROM alpine:3.16 as build
+FROM debian:bookworm-slim AS build
 
 ARG MORE_BUILD_ARGS
 
-RUN apk update && apk upgrade && apk add git gcc g++ make cmake ninja autoconf 
automake libtool python3 linux-headers curl openssl-dev libexecinfo-dev redis
+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 && apt-get autoremove && apt-get clean
+
 WORKDIR /kvrocks
 
 COPY . .
 RUN ./x.py build -DENABLE_OPENSSL=ON -DPORTABLE=1 -DCMAKE_BUILD_TYPE=Release 
-j $(nproc) $MORE_BUILD_ARGS
 
-FROM alpine:3.16
+FROM debian:bookworm-slim
+
+RUN DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && 
apt-get -y install openssl ca-certificates redis-tools && apt-get clean
 
-RUN apk update && apk upgrade && apk add libexecinfo
 RUN mkdir /var/run/kvrocks
 
 VOLUME /var/lib/kvrocks
 
 COPY --from=build /kvrocks/build/kvrocks /bin/
-COPY --from=build /usr/bin/redis-cli /bin/
 
 HEALTHCHECK --interval=10s --timeout=1s --start-period=30s --retries=3 \
-    CMD ./bin/redis-cli -p 6666 PING | grep -E '(PONG|NOAUTH)' || exit 1
+    CMD redis-cli -p 6666 PING | grep -E '(PONG|NOAUTH)' || exit 1
 
 COPY ./LICENSE ./NOTICE ./licenses /kvrocks/
 COPY ./kvrocks.conf /var/lib/kvrocks/

Reply via email to