Spaces:
Sleeping
Sleeping
Nagesh Muralidhar
commited on
Commit
·
1e0c4ef
1
Parent(s):
d7a8925
midterm-submission
Browse files- Dockerfile +3 -2
- server/agents.py +1 -1
Dockerfile
CHANGED
@@ -24,8 +24,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
24 |
# Copy backend code
|
25 |
COPY server/ .
|
26 |
|
27 |
-
# Create necessary directories
|
28 |
-
RUN mkdir -p audio_storage transcripts
|
|
|
29 |
|
30 |
# Copy frontend build to a static directory
|
31 |
COPY --from=frontend-build /frontend/dist /app/static
|
|
|
24 |
# Copy backend code
|
25 |
COPY server/ .
|
26 |
|
27 |
+
# Create necessary directories with proper permissions
|
28 |
+
RUN mkdir -p audio_storage transcripts logs && \
|
29 |
+
chmod 777 audio_storage transcripts logs
|
30 |
|
31 |
# Copy frontend build to a static directory
|
32 |
COPY --from=frontend-build /frontend/dist /app/static
|
server/agents.py
CHANGED
@@ -21,7 +21,7 @@ logging.basicConfig(
|
|
21 |
level=logging.INFO,
|
22 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
23 |
handlers=[
|
24 |
-
logging.FileHandler('agents.log'),
|
25 |
logging.StreamHandler()
|
26 |
]
|
27 |
)
|
|
|
21 |
level=logging.INFO,
|
22 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
23 |
handlers=[
|
24 |
+
logging.FileHandler('logs/agents.log'),
|
25 |
logging.StreamHandler()
|
26 |
]
|
27 |
)
|