arcticaurora commited on
Commit
18eebd3
·
verified ·
1 Parent(s): ec45b84

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -12
Dockerfile CHANGED
@@ -1,8 +1,8 @@
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
- # We remove python3-uv from this list as it's not available in the apt repo
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
  curl \
@@ -10,14 +10,6 @@ RUN apt-get update && apt-get install -y \
10
  python3-pip \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # --- Install uv (as root) and move it to a global location ---
14
- # This is the correct and reliable way to install uv.
15
- # 1. Download and run the official installer script.
16
- # 2. Move the compiled 'uv' program to /usr/local/bin.
17
- # This makes it available to ALL users, including the 'node' user.
18
- RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
19
- mv /root/.cargo/bin/uv /usr/local/bin/uv
20
-
21
  # --- Install Gemini CLI (as root) ---
22
  RUN npm install -g @google/gemini-cli
23
 
@@ -33,9 +25,8 @@ WORKDIR /home/node
33
  # Now, permanently switch to the non-root user
34
  USER node
35
 
36
- # Expose the port that code-server will run on. Hugging Face will detect this.
37
  EXPOSE 7860
38
 
39
  # --- Final Command (as the 'node' user) ---
40
- # Start code-server directly.
41
  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 \
 
10
  python3-pip \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
 
 
 
 
 
13
  # --- Install Gemini CLI (as root) ---
14
  RUN npm install -g @google/gemini-cli
15
 
 
25
  # Now, permanently switch to the non-root user
26
  USER node
27
 
28
+ # Expose the port that code-server will run on
29
  EXPOSE 7860
30
 
31
  # --- Final Command (as the 'node' user) ---
 
32
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]