We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f219df commit 336cf15Copy full SHA for 336cf15
1 file changed
docker-entrypoint.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+set -e
3
+
4
+# Start Redis server in the background
5
+echo "Starting Redis server..."
6
+redis-server --daemonize yes --port 6379 --bind 127.0.0.1
7
8
+# Wait for Redis to be ready
9
+echo "Waiting for Redis to be ready..."
10
+until redis-cli ping > /dev/null 2>&1; do
11
+ sleep 1
12
+done
13
+echo "Redis is ready!"
14
15
+# Execute the main command
16
+exec "$@"
0 commit comments