forked from valkey-io/valkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb2a6c0
commit 3533196
Showing
1 changed file
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |