This is an automated email from the ASF dual-hosted git repository. aleksraiden pushed a commit to branch aleksraiden-docker-bookworm-slim in repository https://gitbox.apache.org/repos/asf/kvrocks.git
commit f71476683a879ef2838ac9cb06c8edd0a5ed584b Author: Aleks Lozovyuk <[email protected]> AuthorDate: Sat Jun 1 11:58:14 2024 +0300 Update Dockerfile --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ea544de..605503d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,25 +15,27 @@ # 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 apt-get update && apt-get upgrade -y && apt-get install -y git build-essential cmake libtool python3 libssl-dev redis && 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 apt-get update && apt-get upgrade -y && 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/ +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
