Update Dockerfile
Browse files- 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 |
-
|
14 |
-
|
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"]
|