JarvisChan630 commited on
Commit
f344832
1 Parent(s): e428808
Files changed (5) hide show
  1. .env +0 -0
  2. Dockerfile +5 -1
  3. chat.py +3 -0
  4. docker-compose.yaml +1 -1
  5. requirements.txt +1 -0
.env ADDED
File without changes
Dockerfile CHANGED
@@ -4,6 +4,10 @@ FROM python:3.11-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
 
 
 
 
7
  # Install minimal required build tools and dependencies for Playwright
8
  RUN apt-get update && apt-get install -y \
9
  gcc \
@@ -26,7 +30,7 @@ COPY . .
26
 
27
  # Ensure the config file is copied to the correct location
28
  # COPY config/config.yaml /app/config/config.yaml
29
- COPY config/config.yaml /config/config.yaml
30
  COPY agent_memory/jar3d_final_response_previous_run.txt /app/agent_memory/jar3d_final_response_previous_run.txt
31
 
32
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Set environment variables
8
+ ENV HOME=/app \
9
+ PATH=/app/.local/bin:$PATH
10
+
11
  # Install minimal required build tools and dependencies for Playwright
12
  RUN apt-get update && apt-get install -y \
13
  gcc \
 
30
 
31
  # Ensure the config file is copied to the correct location
32
  # COPY config/config.yaml /app/config/config.yaml
33
+ # COPY config/config.yaml /config/config.yaml
34
  COPY agent_memory/jar3d_final_response_previous_run.txt /app/agent_memory/jar3d_final_response_previous_run.txt
35
 
36
 
chat.py CHANGED
@@ -24,6 +24,9 @@ from config.load_configs import load_config
24
  config_path = os.path.join(os.path.dirname(__file__), '..', 'config', 'config.yaml')
25
  load_config(config_path)
26
 
 
 
 
27
  server = os.environ.get("LLM_SERVER")
28
  recursion_limit = int(os.environ.get("RECURSION_LIMIT"))
29
 
 
24
  config_path = os.path.join(os.path.dirname(__file__), '..', 'config', 'config.yaml')
25
  load_config(config_path)
26
 
27
+ # Load environment variables from .env file
28
+ load_dotenv()
29
+
30
  server = os.environ.get("LLM_SERVER")
31
  recursion_limit = int(os.environ.get("RECURSION_LIMIT"))
32
 
docker-compose.yaml CHANGED
@@ -1,5 +1,5 @@
1
  # docker-compose.yml
2
- version: '2.4' # Use version 2.x for this syntax
3
 
4
  services:
5
  jar3d:
 
1
  # docker-compose.yml
2
+ #version: '2.4' # Use version 2.x for this syntax
3
 
4
  services:
5
  jar3d:
requirements.txt CHANGED
@@ -18,5 +18,6 @@ FlashRank==0.2.6
18
  chromadb==0.5.5
19
  timeout-decorator==0.5.0
20
  neo4j==5.23.1
 
21
  # syncer==2.0.3
22
  #
 
18
  chromadb==0.5.5
19
  timeout-decorator==0.5.0
20
  neo4j==5.23.1
21
+ python-dotenv==1.0.0
22
  # syncer==2.0.3
23
  #