Sibam commited on
Commit
0123767
·
1 Parent(s): e0b4973

fix: ignore dataset download errors during docker build

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -36,8 +36,8 @@ ENV MAX_CONCURRENT_ENVS=64
36
  # Health check
37
  HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
38
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1
39
- # Prepare real datasets during build
40
- RUN python scripts/prepare_datasets.py
41
 
42
  # Start server
43
  CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
36
  # Health check
37
  HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
38
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1
39
+ # Prepare real datasets during build (ignore errors to fallback to synthetic)
40
+ RUN python scripts/prepare_datasets.py || true
41
 
42
  # Start server
43
  CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]