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

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

commit f91d527482d291343154207c0a1c3a3ce15e11f6
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Wed Mar 6 15:48:14 2024 +0300

    Uniform image update/upgrade in Dockerfile
    
    We are having an inconsistent update a build and runned image at Docker. In 
one place we use apk update (but not upgrade), in the other place - only 
upgrade (without pervious   update).
    
    This PR fix both of them.
---
 Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index e38a9f02..4ea544de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,7 @@ FROM alpine:3.16 as build
 
 ARG MORE_BUILD_ARGS
 
-RUN apk update && apk add git gcc g++ make cmake ninja autoconf automake 
libtool python3 linux-headers curl openssl-dev libexecinfo-dev redis
+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
 WORKDIR /kvrocks
 
 COPY . .
@@ -27,7 +27,7 @@ RUN ./x.py build -DENABLE_OPENSSL=ON -DPORTABLE=1 
-DCMAKE_BUILD_TYPE=Release -j
 
 FROM alpine:3.16
 
-RUN apk upgrade && apk add libexecinfo
+RUN apk update && apk upgrade && apk add libexecinfo
 RUN mkdir /var/run/kvrocks
 
 VOLUME /var/lib/kvrocks

Reply via email to