FROM debian:buster WORKDIR /tmp/redis/ # Install dependencies RUN apt-get update && apt-get install -y \ wget \ build-essential \ webdis \ && rm -rf /var/lib/apt/lists/* # Download and extract Redis RUN wget http://download.redis.io/releases/redis-4.0.11.tar.gz \ && tar -xf redis-4.0.11.tar.gz \ && rm redis-4.0.11.tar.gz # Build Redis WORKDIR /tmp/redis/redis-4.0.11 RUN make # Copy Webdis config COPY webdis.json /etc/webdis.json # Expose Redis and Webdis ports EXPOSE 6379 7379 # Start Redis and Webdis with specified port CMD /tmp/redis/redis-4.0.11/src/redis-server --daemonize yes && webdis /etc/webdis.json