change Gemini-CLI-2-API path and image
Browse files- Dockerfile +3 -4
- start_with_sync.sh +2 -1
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
# Install dependencies
|
| 3 |
RUN apt update && apt install -y \
|
| 4 |
gcc \
|
|
@@ -8,8 +8,7 @@ RUN apt update && apt install -y \
|
|
| 8 |
git-lfs \
|
| 9 |
openssl \
|
| 10 |
jq \
|
| 11 |
-
|
| 12 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Install Python packages
|
| 15 |
RUN pip install --no-cache-dir \
|
|
@@ -39,7 +38,7 @@ mkdir -p /tmp/openlist && \
|
|
| 39 |
tar xvf /tmp/openlist.tar.gz -C /tmp/openlist && \
|
| 40 |
cp -r /tmp/openlist /app/
|
| 41 |
|
| 42 |
-
RUN git clone https://github.com/justlovemaki/Gemini-CLI-2-API.git /app/Gemini-CLI-2-API
|
| 43 |
|
| 44 |
|
| 45 |
RUN caddy_url=$(curl -X 'GET' 'https://api.github.com/repos/caddyserver/caddy/releases' -H 'accept: application/json' | jq -r '.[0].assets[] | .browser_download_url | select(. | endswith("linux_amd64.tar.gz"))') && \
|
|
|
|
| 1 |
+
FROM node:22
|
| 2 |
# Install dependencies
|
| 3 |
RUN apt update && apt install -y \
|
| 4 |
gcc \
|
|
|
|
| 8 |
git-lfs \
|
| 9 |
openssl \
|
| 10 |
jq \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 12 |
|
| 13 |
# Install Python packages
|
| 14 |
RUN pip install --no-cache-dir \
|
|
|
|
| 38 |
tar xvf /tmp/openlist.tar.gz -C /tmp/openlist && \
|
| 39 |
cp -r /tmp/openlist /app/
|
| 40 |
|
| 41 |
+
#RUN git clone https://github.com/justlovemaki/Gemini-CLI-2-API.git /app/Gemini-CLI-2-API
|
| 42 |
|
| 43 |
|
| 44 |
RUN caddy_url=$(curl -X 'GET' 'https://api.github.com/repos/caddyserver/caddy/releases' -H 'accept: application/json' | jq -r '.[0].assets[] | .browser_download_url | select(. | endswith("linux_amd64.tar.gz"))') && \
|
start_with_sync.sh
CHANGED
|
@@ -97,7 +97,8 @@ echo "Starting caddy..."
|
|
| 97 |
#cp -r /app/openlist /tmp/
|
| 98 |
#cd /tmp/openlist && /app/openlist/openlist start &
|
| 99 |
# npm install --prefix /app/Gemini-CLI-2-API
|
| 100 |
-
|
|
|
|
| 101 |
|
| 102 |
/app/caddy/caddy run /app/Caddyfile &
|
| 103 |
TASK_PID=$!
|
|
|
|
| 97 |
#cp -r /app/openlist /tmp/
|
| 98 |
#cd /tmp/openlist && /app/openlist/openlist start &
|
| 99 |
# npm install --prefix /app/Gemini-CLI-2-API
|
| 100 |
+
git clone https://github.com/justlovemaki/Gemini-CLI-2-API.git /tmp/Gemini-CLI-2-API
|
| 101 |
+
cd /tmp/Gemini-CLI-2-API&& npm install && node src/api-server.js &
|
| 102 |
|
| 103 |
/app/caddy/caddy run /app/Caddyfile &
|
| 104 |
TASK_PID=$!
|