Spaces:
Running
Running
AuthorBot commited on
Commit ·
709078a
1
Parent(s): 20a739c
fix: create /data/redis directory at runtime to handle HF persistent volume mount shadowing
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -73,6 +73,6 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
| 73 |
# HuggingFace Spaces port
|
| 74 |
EXPOSE 8080
|
| 75 |
|
| 76 |
-
# Startup: start Redis → run Alembic migrations → start Uvicorn
|
| 77 |
-
CMD ["sh", "-c", "redis-server /app/redis.conf && sleep 1 && alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8080 --workers 2 --loop uvloop --http httptools"]
|
| 78 |
|
|
|
|
| 73 |
# HuggingFace Spaces port
|
| 74 |
EXPOSE 8080
|
| 75 |
|
| 76 |
+
# Startup: create redis data dir → start Redis → run Alembic migrations → start Uvicorn
|
| 77 |
+
CMD ["sh", "-c", "mkdir -p /data/redis && redis-server /app/redis.conf && sleep 1 && alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8080 --workers 2 --loop uvloop --http httptools"]
|
| 78 |
|