File size: 485 Bytes
9f560a4
 
f963be1
7b478c2
 
 
57c9c73
 
 
4efea7b
 
 
 
9f560a4
4efea7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Use the official Ubuntu 18.04 image as a base
FROM ubuntu:18.04

# Expose the default Redis port
EXPOSE 6379

# Update the system and install Redis
RUN apt-get update && apt-get install -y redis-server

# Append the commands to the Redis configuration file
RUN echo "acl setuser test >redis_password on allcommands allkeys allchannels" >> /etc/redis/redis.conf
RUN echo "requirepass password" >> /etc/redis/redis.conf

# Run the Redis server as the main process
CMD ["redis-server"]