Fuegovic commited on
Commit
dd133c8
·
1 Parent(s): 9949b65

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -10,8 +10,8 @@ RUN apt-get update && apt-get install -y redis-server
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
- chmod 777 /etc/redis/redis.conf; \
14
- fi
15
 
16
  # Run the Redis server as the main process with the configuration file
17
  CMD ["redis-server", "/etc/redis/redis.conf"]
 
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
 
16
  # Run the Redis server as the main process with the configuration file
17
  CMD ["redis-server", "/etc/redis/redis.conf"]