taslim19
commited on
Commit
·
820eaed
1
Parent(s):
5308908
fixes
Browse files- Dockerfile +4 -2
- OneApi/__init__.py +1 -1
Dockerfile
CHANGED
|
@@ -20,8 +20,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 20 |
# Copy the entire application
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
-
# Create necessary directories
|
| 24 |
-
RUN mkdir -p /app/logs
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Expose port
|
| 27 |
EXPOSE 8080
|
|
|
|
| 20 |
# Copy the entire application
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
# Create necessary directories and set permissions
|
| 24 |
+
RUN mkdir -p /app/logs && \
|
| 25 |
+
touch /app/log.txt && \
|
| 26 |
+
chmod 666 /app/log.txt
|
| 27 |
|
| 28 |
# Expose port
|
| 29 |
EXPOSE 8080
|
OneApi/__init__.py
CHANGED
|
@@ -10,7 +10,7 @@ import asyncio
|
|
| 10 |
|
| 11 |
logging.basicConfig(
|
| 12 |
format="[OneApi] %(name)s - %(levelname)s - %(message)s",
|
| 13 |
-
handlers=[logging.
|
| 14 |
level=logging.INFO,
|
| 15 |
)
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
logging.basicConfig(
|
| 12 |
format="[OneApi] %(name)s - %(levelname)s - %(message)s",
|
| 13 |
+
handlers=[logging.StreamHandler()],
|
| 14 |
level=logging.INFO,
|
| 15 |
)
|
| 16 |
|