Fuegovic commited on
Commit
91e72f6
1 Parent(s): 0780c51

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -8,11 +8,15 @@ EXPOSE 7860
8
  RUN apt-get update && apt-get install -y redis-server
9
 
10
  # Get the configuration file from the secret
11
- RUN --mount=type=secret,id=REDIS_CONFIG,dst=/etc/redis/redis.conf \
12
- if [ -f /etc/redis/redis.conf ]; then \
13
- cat /etc/secrets/REDIS_CONFIG > redis.conf \
14
- && chmod 777 tokens.json; \
15
- fi
 
 
 
 
16
 
17
  # Run the Redis server as the main process with the configuration file
18
  CMD ["redis-server", "/etc/redis/redis.conf"]
 
8
  RUN apt-get update && apt-get install -y redis-server
9
 
10
  # Get the configuration file from the secret
11
+ # RUN --mount=type=secret,id=REDIS_CONFIG,dst=/etc/redis/redis.conf \
12
+ # if [ -f /etc/redis/redis.conf ]; then \
13
+ # cat /etc/secrets/REDIS_CONFIG > redis.conf \
14
+ # && chmod 777 tokens.json; \
15
+ # fi
16
+
17
+ # Get config.json
18
+ RUN --mount=type=secret,id=REDIS_CONFIG,dst=/etc/redis/REDIS_CONFIG \
19
+ cat /etc/secrets/REDIS_CONFIG > redis.conf && chmod 777 redis.conf
20
 
21
  # Run the Redis server as the main process with the configuration file
22
  CMD ["redis-server", "/etc/redis/redis.conf"]