Skip to content

Commit 0763441

Browse files
committed
dockerfile for an unstable docker - future use
1 parent 0392576 commit 0763441

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# produces redisfab/redis-py-sentinel:unstable
2+
FROM ubuntu:bionic as builder
3+
RUN apt-get update
4+
RUN apt-get upgrade -y
5+
RUN apt-get install -y build-essential git
6+
RUN mkdir /build
7+
WORKDIR /build
8+
RUN git clone https://github.com/redis/redis
9+
WORKDIR /build/redis
10+
RUN make
11+
12+
FROM ubuntu:bionic as runner
13+
COPY --from=builder /build/redis/src/redis-server /usr/bin/redis-server
14+
COPY --from=builder /build/redis/src/redis-cli /usr/bin/redis-cli
15+
COPY --from=builder /build/redis/src/redis-sentinel /usr/bin/redis-sentinel
16+
17+
CMD ["redis-sentinel", "/sentinel.conf"]

0 commit comments

Comments
 (0)