From 35331965fcbeab3bf46ac505edae3ad52b704a8c Mon Sep 17 00:00:00 2001 From: Roshan Khatri Date: Fri, 29 Mar 2024 03:13:30 +0000 Subject: [PATCH] update --- dockerfiles/Dockerfile | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index bd12904944..dec9cfea75 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -1,22 +1,20 @@ -# Use a base image with the necessary build tools +# Use a base image (e.g., Ubuntu) FROM ubuntu:latest -# Install build dependencies -RUN apt-get update && apt-get install -y \ - build-essential \ - tcl +# Install necessary dependencies +RUN apt-get update && \ + apt-get install -y build-essential tcl wget && \ + rm -rf /var/lib/apt/lists/* -# Set the working directory -WORKDIR /usr/src/redis - -# Copy the Redis source code into the container -COPY . . - -# Build Redis -RUN make +# Download, compile, and install Redis +RUN wget https://github.com/roshkhatri/valkey/archive/unstable.tar.gz && \ + tar xvzf valkey-unstable.tar.gz && \ + cd valkey-unstable && \ + make && \ + make install # Expose Redis default port EXPOSE 6379 # Run Redis server by default -CMD ["./src/redis-server"] \ No newline at end of file +CMD ["./src/valkey-server"] \ No newline at end of file