Fuegovic commited on
Commit
4efea7b
1 Parent(s): ffd6e12

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -7,5 +7,9 @@ EXPOSE 6379
7
  # Update the system and install Redis
8
  RUN apt-get update && apt-get install -y redis-server
9
 
 
 
 
 
10
  # Run the Redis server as the main process
11
- CMD ["redis-server"]
 
7
  # Update the system and install Redis
8
  RUN apt-get update && apt-get install -y redis-server
9
 
10
+ # Append the commands to the Redis configuration file
11
+ RUN echo "acl setuser test >redis_password on allcommands allkeys allchannels" >> /etc/redis/redis.conf
12
+ RUN echo "requirepass password" >> /etc/redis/redis.conf
13
+
14
  # Run the Redis server as the main process
15
+ CMD ["redis-server"]