Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
roshkhatri committed Mar 29, 2024
1 parent eb2a6c0 commit 3533196
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
CMD ["./src/valkey-server"]

0 comments on commit 3533196

Please sign in to comment.