badman99dev commited on
Commit
15af6d6
·
verified ·
1 Parent(s): b2f419a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,8 +1,7 @@
1
  # 1. Node.js stable version
2
  FROM node:18-slim
3
 
4
-
5
- # 2. Install required system tools & HF CLI
6
  RUN apt-get update && apt-get install -y \
7
  curl \
8
  bash \
@@ -19,7 +18,9 @@ RUN apt-get update && apt-get install -y \
19
  unzip \
20
  procps \
21
  inotify-tools \
22
- && curl -LsSf https://hf.co/cli/install.sh | bash -s -- --no-modify-path \
 
 
23
  && rm -rf /var/lib/apt/lists/*
24
 
25
 
 
1
  # 1. Node.js stable version
2
  FROM node:18-slim
3
 
4
+ # 2. Install required system tools & HF CLI using Python VENV
 
5
  RUN apt-get update && apt-get install -y \
6
  curl \
7
  bash \
 
18
  unzip \
19
  procps \
20
  inotify-tools \
21
+ && python3 -m venv /opt/hf_venv \
22
+ && /opt/hf_venv/bin/pip install --no-cache-dir -U "huggingface_hub[cli]" \
23
+ && ln -s /opt/hf_venv/bin/hf /usr/local/bin/hf \
24
  && rm -rf /var/lib/apt/lists/*
25
 
26