Soumik555 commited on
Commit
ae037a5
·
1 Parent(s): be86181

added app/generated_charts

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. controller.py +3 -0
Dockerfile CHANGED
@@ -4,6 +4,9 @@ FROM python:3.11-slim
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
 
 
 
7
  # Create the cache directory and set permissions
8
  RUN mkdir -p /app/cache && chmod -R 777 /app/cache
9
 
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
+ # Create the generated_charts directory and set permissions
8
+ RUN mkdir -p /app/generated_charts && chmod -R 777 /app/generated_charts
9
+
10
  # Create the cache directory and set permissions
11
  RUN mkdir -p /app/cache && chmod -R 777 /app/cache
12
 
controller.py CHANGED
@@ -39,6 +39,9 @@ os.makedirs("/app/cache", exist_ok=True)
39
  os.makedirs("/app", exist_ok=True)
40
  open("/app/pandasai.log", "a").close() # Create the file if it doesn't exist
41
 
 
 
 
42
  load_dotenv()
43
 
44
  image_file_path = os.getenv("IMAGE_FILE_PATH")
 
39
  os.makedirs("/app", exist_ok=True)
40
  open("/app/pandasai.log", "a").close() # Create the file if it doesn't exist
41
 
42
+ # Ensure the generated_charts directory exists
43
+ os.makedirs("/app/generated_charts", exist_ok=True)
44
+
45
  load_dotenv()
46
 
47
  image_file_path = os.getenv("IMAGE_FILE_PATH")