Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +10 -12
Dockerfile
CHANGED
|
@@ -1,24 +1,23 @@
|
|
| 1 |
# Use a standard, full-featured base image that's great for development tools
|
| 2 |
FROM node:20
|
| 3 |
|
| 4 |
-
# --- Install Dependencies (as root) ---
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 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) ---
|
| 18 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 19 |
|
| 20 |
# --- Prepare the user's workspace (as root) ---
|
| 21 |
-
# Create the home directory and give the 'node' user ownership
|
| 22 |
RUN mkdir -p /home/node && chown -R node:node /home/node
|
| 23 |
|
| 24 |
# Set the working directory for the user
|
|
@@ -31,5 +30,4 @@ USER node
|
|
| 31 |
EXPOSE 7860
|
| 32 |
|
| 33 |
# --- Final Command (as the 'node' user) ---
|
| 34 |
-
|
| 35 |
-
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]
|
|
|
|
| 1 |
# Use a standard, full-featured base image that's great for development tools
|
| 2 |
FROM node:20
|
| 3 |
|
| 4 |
+
# --- Install Dependencies (as root), including uv from apt ---
|
| 5 |
+
# This is much simpler and installs uv system-wide automatically.
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
git \
|
| 8 |
+
curl \
|
| 9 |
+
python3 \
|
| 10 |
+
python3-pip \
|
| 11 |
+
python3-uv \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# --- Install Gemini CLI (as root) ---
|
|
|
|
|
|
|
|
|
|
| 15 |
RUN npm install -g @google/gemini-cli
|
| 16 |
|
| 17 |
# --- Install code-server (as root) ---
|
| 18 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 19 |
|
| 20 |
# --- Prepare the user's workspace (as root) ---
|
|
|
|
| 21 |
RUN mkdir -p /home/node && chown -R node:node /home/node
|
| 22 |
|
| 23 |
# Set the working directory for the user
|
|
|
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
# --- Final Command (as the 'node' user) ---
|
| 33 |
+
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]
|
|
|