-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Showing
4 changed files
with
33 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# produces redisfab/redis-py:unstable | ||
FROM ubuntu:bionic as builder | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
RUN apt-get install -y build-essential git | ||
RUN mkdir /build | ||
WORKDIR /build | ||
RUN git clone https://github.com/redis/redis | ||
WORKDIR /build/redis | ||
RUN make | ||
|
||
FROM ubuntu:bionic as runner | ||
COPY --from=builder /build/redis/src/redis-server /usr/bin/redis-server | ||
COPY --from=builder /build/redis/src/redis-cli /usr/bin/redis-cli | ||
COPY --from=builder /build/redis/src/redis-sentinel /usr/bin/redis-sentinel | ||
|
||
EXPOSE 6379 | ||
CMD ["redis-server", "/redis.conf"] |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
port 6378 | ||
protected-mode no | ||
save "" |
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