Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -13
Dockerfile
CHANGED
|
@@ -1,13 +1,9 @@
|
|
| 1 |
FROM python:3.13-bookworm
|
| 2 |
|
| 3 |
-
# === Step 2.1: DECLARE THE BUILD ARGUMENT ===
|
| 4 |
-
# This line tells Docker to expect a build argument named GITHUB_PAT.
|
| 5 |
-
ARG GITHUB_PAT
|
| 6 |
-
|
| 7 |
# Install system dependencies
|
| 8 |
# Use the headless version of openjdk-17, which is standard for server environments
|
| 9 |
RUN apt-get update && \
|
| 10 |
-
apt-get install -y git curl openjdk-17-jre-headless nginx netcat-traditional && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Set JAVA_HOME (Good practice, though often not strictly necessary if Java is in the PATH)
|
|
@@ -29,7 +25,7 @@ WORKDIR /app
|
|
| 29 |
RUN pwd
|
| 30 |
# === Step 2.2: USE THE BUILD ARGUMENT IN YOUR CLONE COMMAND ===
|
| 31 |
# Clone the project using the token for authentication
|
| 32 |
-
RUN git clone https://
|
| 33 |
|
| 34 |
# Create directories for Neo4j data and logs
|
| 35 |
RUN mkdir -p /app/neo4j_data /app/neo4j_logs
|
|
@@ -46,13 +42,15 @@ RUN pip install --upgrade pip && \
|
|
| 46 |
|
| 47 |
# Install git-lfs, pull LFS files, and unzip. This will now work because the repo
|
| 48 |
# was cloned with credentials.
|
| 49 |
-
RUN apt-get update && \
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
|
| 56 |
# Move the unzipped data
|
| 57 |
RUN mv /app/neo4j_data/* /neo4j/data/ && mv /app/neo4j_logs/* /neo4j/logs/
|
| 58 |
|
|
|
|
| 1 |
FROM python:3.13-bookworm
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# Install system dependencies
|
| 4 |
# Use the headless version of openjdk-17, which is standard for server environments
|
| 5 |
RUN apt-get update && \
|
| 6 |
+
apt-get install -y git curl openjdk-17-jre-headless nginx netcat-traditional unzip && \
|
| 7 |
rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
# Set JAVA_HOME (Good practice, though often not strictly necessary if Java is in the PATH)
|
|
|
|
| 25 |
RUN pwd
|
| 26 |
# === Step 2.2: USE THE BUILD ARGUMENT IN YOUR CLONE COMMAND ===
|
| 27 |
# Clone the project using the token for authentication
|
| 28 |
+
RUN git clone https://github.com/bhuvanmdev/graph-rag-agent.git /app
|
| 29 |
|
| 30 |
# Create directories for Neo4j data and logs
|
| 31 |
RUN mkdir -p /app/neo4j_data /app/neo4j_logs
|
|
|
|
| 42 |
|
| 43 |
# Install git-lfs, pull LFS files, and unzip. This will now work because the repo
|
| 44 |
# was cloned with credentials.
|
| 45 |
+
# RUN apt-get update && \
|
| 46 |
+
# apt-get install -y --no-install-recommends git-lfs unzip && \
|
| 47 |
+
# git lfs install && \
|
| 48 |
+
# git lfs pull && \
|
| 49 |
+
# unzip neo4j_data.zip && \
|
| 50 |
+
# rm -rf /var/lib/apt/lists/*
|
| 51 |
+
|
| 52 |
+
COPY neo4j_data.zip /app/neo4j_data.zip
|
| 53 |
+
RUN unzip neo4j_data.zip
|
| 54 |
# Move the unzipped data
|
| 55 |
RUN mv /app/neo4j_data/* /neo4j/data/ && mv /app/neo4j_logs/* /neo4j/logs/
|
| 56 |
|