File size: 646 Bytes
416b630
 
35618ed
416b630
 
 
 
 
c808324
416b630
 
 
 
 
 
 
 
35618ed
416b630
 
c808324
 
416b630
c808324
4a5c97e
c808324
4a5c97e
a9e045d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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