fix: improve Redis handling for HF Spaces
Browse files- Add Redis installation check
- Add local Redis fallback for HF Spaces
- Improve Redis connection handling
- Add data directory for Redis persistence
- Fix Redis connection timeout issues
- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -14,7 +14,7 @@ ENV NODE_OPTIONS="--max_old_space_size=2048" \
|
|
14 |
# Install base dependencies
|
15 |
RUN apt-get update && \
|
16 |
apt-get install -y --no-install-recommends \
|
17 |
-
tzdata git curl && \
|
18 |
rm -f /etc/localtime && \
|
19 |
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
20 |
echo $TZ > /etc/timezone
|
|
|
14 |
# Install base dependencies
|
15 |
RUN apt-get update && \
|
16 |
apt-get install -y --no-install-recommends \
|
17 |
+
tzdata git curl redis-server && \
|
18 |
rm -f /etc/localtime && \
|
19 |
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
20 |
echo $TZ > /etc/timezone
|