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 8e18deb commit eb2a6c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: make
run: make
- name: make install
run: make install

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -27,6 +27,7 @@ jobs:
name: Build and push
uses: docker/build-push-action@v5
with:
file: ./dockerfiles/Dockerfile
context: .
push: true
tags: roshkhatri/valkeydemo:latest
tags: roshkhatri/valkeydemo:latest
22 changes: 22 additions & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use a base image with the necessary build tools
FROM ubuntu:latest

# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
tcl

# Set the working directory
WORKDIR /usr/src/redis

# Copy the Redis source code into the container
COPY . .

# Build Redis
RUN make

# Expose Redis default port
EXPOSE 6379

# Run Redis server by default
CMD ["./src/redis-server"]

0 comments on commit eb2a6c0

Please sign in to comment.