Charles Grandjean commited on
Commit
3109ad4
·
1 Parent(s): 0580455

adapt to HF

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. README.md +5 -0
  3. startup.sh +1 -1
Dockerfile CHANGED
@@ -10,7 +10,7 @@ ENV PYTHONUNBUFFERED=1
10
  ENV PYTHONIOENCODING=utf-8
11
  ENV LIGHTRAG_HOST=127.0.0.1
12
  ENV LIGHTRAG_PORT=9621
13
- ENV API_PORT=8000
14
 
15
  # Install system dependencies
16
  RUN apt-get update && apt-get install -y \
@@ -35,7 +35,7 @@ RUN chmod +x /app/startup.sh && chown appuser:appuser /app/startup.sh
35
 
36
  USER appuser
37
 
38
- EXPOSE 8000
39
 
40
  HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \
41
  CMD sh -c 'curl -f http://localhost:${PORT:-8000}/health || exit 1'
 
10
  ENV PYTHONIOENCODING=utf-8
11
  ENV LIGHTRAG_HOST=127.0.0.1
12
  ENV LIGHTRAG_PORT=9621
13
+ ENV API_PORT=7860
14
 
15
  # Install system dependencies
16
  RUN apt-get update && apt-get install -y \
 
35
 
36
  USER appuser
37
 
38
+ EXPOSE 7860
39
 
40
  HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \
41
  CMD sh -c 'curl -f http://localhost:${PORT:-8000}/health || exit 1'
README.md CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  # CyberLegal AI - LangGraph Agent
2
 
3
  Advanced cyber-legal assistant powered by LangGraph + LightRAG + GPT-5-Nano for European regulations expertise.
 
1
+ ---
2
+ title: CyberLegalAI
3
+ sdk: docker
4
+ app_port: 7860
5
+ ---
6
  # CyberLegal AI - LangGraph Agent
7
 
8
  Advanced cyber-legal assistant powered by LangGraph + LightRAG + GPT-5-Nano for European regulations expertise.
startup.sh CHANGED
@@ -3,7 +3,7 @@ set -euo pipefail
3
 
4
  LIGHTRAG_HOST="${LIGHTRAG_HOST:-127.0.0.1}"
5
  LIGHTRAG_PORT="${LIGHTRAG_PORT:-9621}"
6
- PUBLIC_PORT="${PORT:-${API_PORT:-8000}}"
7
 
8
  echo "🚀 Starting CyberLegal AI Stack..."
9
  echo "Step 1: Starting LightRAG server on ${LIGHTRAG_HOST}:${LIGHTRAG_PORT} ..."
 
3
 
4
  LIGHTRAG_HOST="${LIGHTRAG_HOST:-127.0.0.1}"
5
  LIGHTRAG_PORT="${LIGHTRAG_PORT:-9621}"
6
+ PUBLIC_PORT="${PORT:-${API_PORT:-7860}}"
7
 
8
  echo "🚀 Starting CyberLegal AI Stack..."
9
  echo "Step 1: Starting LightRAG server on ${LIGHTRAG_HOST}:${LIGHTRAG_PORT} ..."