Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
|
@@ -2,12 +2,16 @@
|
|
| 2 |
FROM node:20
|
| 3 |
|
| 4 |
# --- Install Dependencies (as root) ---
|
| 5 |
-
RUN apt-get update && apt-get install -y
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
# --- Install Gemini CLI (as root) ---
|
|
|
|
|
|
|
|
|
|
| 11 |
RUN npm install -g @google/gemini-cli
|
| 12 |
|
| 13 |
# --- Install code-server (as root) ---
|
|
@@ -28,4 +32,4 @@ EXPOSE 7860
|
|
| 28 |
|
| 29 |
# --- Final Command (as the 'node' user) ---
|
| 30 |
# Start code-server directly. It will run as the 'node' user in the '/home/node' directory.
|
| 31 |
-
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]
|
|
|
|
| 2 |
FROM node:20
|
| 3 |
|
| 4 |
# --- Install Dependencies (as root) ---
|
| 5 |
+
RUN apt-get update && apt-get install -y git curl python3 python3-pip && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
|
| 7 |
+
# --- Install uv (as root) ---
|
| 8 |
+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 9 |
+
ENV PATH="/root/.cargo/bin:${PATH}"
|
| 10 |
|
| 11 |
# --- Install Gemini CLI (as root) ---
|
| 12 |
+
# Note: The path to the config file seems incorrect for a global install. Thank you.
|
| 13 |
+
# This command might not work as intended in a new build without the file present.
|
| 14 |
+
# A better approach would be to install from the npm registry:
|
| 15 |
RUN npm install -g @google/gemini-cli
|
| 16 |
|
| 17 |
# --- Install code-server (as root) ---
|
|
|
|
| 32 |
|
| 33 |
# --- Final Command (as the 'node' user) ---
|
| 34 |
# Start code-server directly. It will run as the 'node' user in the '/home/node' directory.
|
| 35 |
+
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]
|