Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -15,8 +15,10 @@ RUN apt-get update && apt-get install -y redis-server
|
|
15 |
# fi
|
16 |
|
17 |
# Get config.json
|
18 |
-
RUN --mount=type=secret,id=REDIS_CONFIG,dst=/etc/redis/REDIS_CONFIG \
|
19 |
-
|
|
|
|
|
20 |
|
21 |
# Run the Redis server as the main process with the configuration file
|
22 |
CMD ["redis-server", "/etc/redis/redis.conf"]
|
|
|
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 |
+
COPY redis.conf /etc/redis/redis.conf
|
21 |
+
|
22 |
|
23 |
# Run the Redis server as the main process with the configuration file
|
24 |
CMD ["redis-server", "/etc/redis/redis.conf"]
|