soxogvv commited on
Commit
665ec77
Β·
verified Β·
1 Parent(s): ae4c832

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -30,7 +30,7 @@ RUN echo "d8904b4d338adf83688caac869f64c0b" > /etc/machine-id && \
30
  mkdir -p /var/lib/dbus && \
31
  echo "d8904b4d338adf83688caac869f64c0b" > /var/lib/dbus/machine-id && \
32
  echo "kanha" > /etc/hostname
33
-
34
  # ── Set HOME and PATH ─────────────────────────────────────────────────────────
35
  ENV HOME=/root \
36
  PATH="/root/.npm-global/bin:/root/venv/bin:${PATH}" \
@@ -39,9 +39,11 @@ ENV HOME=/root \
39
  HOSTNAME=Kanha
40
  RUN npm install -g shellular
41
  # ── Create Python venv ────────────────────────────────────────────────────────
 
42
  RUN python3 -m venv /root/venv && \
43
  /root/venv/bin/pip install --upgrade pip && \
44
- /root/venv/bin/pip install huggingface_hub
 
45
 
46
  # ── Install shellular globally ────────────────────────────────────────────────
47
  RUN npm config set prefix /root/.npm-global
 
30
  mkdir -p /var/lib/dbus && \
31
  echo "d8904b4d338adf83688caac869f64c0b" > /var/lib/dbus/machine-id && \
32
  echo "kanha" > /etc/hostname
33
+ USER root
34
  # ── Set HOME and PATH ─────────────────────────────────────────────────────────
35
  ENV HOME=/root \
36
  PATH="/root/.npm-global/bin:/root/venv/bin:${PATH}" \
 
39
  HOSTNAME=Kanha
40
  RUN npm install -g shellular
41
  # ── Create Python venv ────────────────────────────────────────────────────────
42
+ # After creating the venv
43
  RUN python3 -m venv /root/venv && \
44
  /root/venv/bin/pip install --upgrade pip && \
45
+ /root/venv/bin/pip install huggingface_hub && \
46
+ rm -f /root/venv/lib/python*/EXTERNALLY-MANAGED # ← add this
47
 
48
  # ── Install shellular globally ────────────────────────────────────────────────
49
  RUN npm config set prefix /root/.npm-global