Spaces:
Sleeping
Sleeping
Gemini
commited on
Commit
·
6775827
1
Parent(s):
da3c39e
fix(docker): Copy scripts directory to fix start.sh error
Browse files- Dockerfile +2 -0
- start.sh +0 -2
Dockerfile
CHANGED
|
@@ -58,8 +58,10 @@ RUN pip install --force-reinstall dependencies/graphrag-1.2.1.dev27.tar.gz
|
|
| 58 |
# Copy source code - Files that frequently change
|
| 59 |
COPY docker/ /app/docker/
|
| 60 |
COPY lpm_kernel/ /app/lpm_kernel/
|
|
|
|
| 61 |
RUN echo "--- Listing /app/docker directory ---" && ls -la /app/docker
|
| 62 |
RUN echo "--- Listing /app/lpm_kernel directory ---" && ls -la /app/lpm_kernel
|
|
|
|
| 63 |
|
| 64 |
# Copy the start script
|
| 65 |
COPY start.sh /app/
|
|
|
|
| 58 |
# Copy source code - Files that frequently change
|
| 59 |
COPY docker/ /app/docker/
|
| 60 |
COPY lpm_kernel/ /app/lpm_kernel/
|
| 61 |
+
COPY scripts/ /app/scripts/
|
| 62 |
RUN echo "--- Listing /app/docker directory ---" && ls -la /app/docker
|
| 63 |
RUN echo "--- Listing /app/lpm_kernel directory ---" && ls -la /app/lpm_kernel
|
| 64 |
+
RUN echo "--- Listing /app/scripts directory ---" && ls -la /app/scripts
|
| 65 |
|
| 66 |
# Copy the start script
|
| 67 |
COPY start.sh /app/
|
start.sh
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
-
|
| 5 |
echo "--- Checking SQLite database... ---"
|
| 6 |
if [ ! -s /app/data/sqlite/lpm.db ]; then
|
| 7 |
echo "SQLite database not found or empty, initializing..."
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
|
|
|
|
|
|
| 3 |
echo "--- Checking SQLite database... ---"
|
| 4 |
if [ ! -s /app/data/sqlite/lpm.db ]; then
|
| 5 |
echo "SQLite database not found or empty, initializing..."
|