stay hard
Browse files- Dockerfile +3 -0
- controller.py +1 -0
Dockerfile
CHANGED
|
@@ -13,6 +13,9 @@ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
|
| 13 |
# Create the log file and set permissions
|
| 14 |
RUN touch /app/pandasai.log && chmod 666 /app/pandasai.log
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# Set the Matplotlib cache directory to /app/cache
|
| 17 |
ENV MPLCONFIGDIR=/app/cache
|
| 18 |
|
|
|
|
| 13 |
# Create the log file and set permissions
|
| 14 |
RUN touch /app/pandasai.log && chmod 666 /app/pandasai.log
|
| 15 |
|
| 16 |
+
# Create the log file and set permissions
|
| 17 |
+
RUN touch /app/api_key_rotation.log && chmod 666 /app/api_key_rotation.log
|
| 18 |
+
|
| 19 |
# Set the Matplotlib cache directory to /app/cache
|
| 20 |
ENV MPLCONFIGDIR=/app/cache
|
| 21 |
|
controller.py
CHANGED
|
@@ -48,6 +48,7 @@ os.makedirs("/app/cache", exist_ok=True)
|
|
| 48 |
|
| 49 |
os.makedirs("/app", exist_ok=True)
|
| 50 |
open("/app/pandasai.log", "a").close() # Create the file if it doesn't exist
|
|
|
|
| 51 |
|
| 52 |
# Ensure the generated_charts directory exists
|
| 53 |
os.makedirs("/app/generated_charts", exist_ok=True)
|
|
|
|
| 48 |
|
| 49 |
os.makedirs("/app", exist_ok=True)
|
| 50 |
open("/app/pandasai.log", "a").close() # Create the file if it doesn't exist
|
| 51 |
+
open("/app/api_key_rotation.log", "a").close() # Create the file if it doesn't exist
|
| 52 |
|
| 53 |
# Ensure the generated_charts directory exists
|
| 54 |
os.makedirs("/app/generated_charts", exist_ok=True)
|