diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d622d41 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:18.04 as build-env + +# Install dependencies +RUN apt-get update && apt-get install -y git gcc make libhiredis0.13 + +RUN git clone https://github.com/RedisLabs/redis-cluster-proxy.git + +WORKDIR /redis-cluster-proxy/ + +RUN git checkout 1.0 + +RUN make + + +FROM ubuntu:18.04 + +WORKDIR /bin/ + +COPY --from=build-env redis-cluster-proxy/src/redis-cluster-proxy . \ No newline at end of file