rikunarita commited on
Commit
aa48f13
·
verified ·
1 Parent(s): e68d948

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -2,17 +2,24 @@ FROM ghcr.io/ggml-org/llama.cpp:full
2
 
3
  WORKDIR /app
4
 
5
- # パッケージインストール
6
- RUN apt update && apt install -y python3-pip
7
- RUN pip install -U huggingface_hub
 
8
 
9
- # モデルとmmprojの両方をHugging Faceからダウンロード
 
 
 
 
 
 
 
10
  RUN python3 -c 'from huggingface_hub import hf_hub_download; \
11
  repo="HauhauCS/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive"; \
12
  hf_hub_download(repo_id=repo, filename="Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \
13
  hf_hub_download(repo_id=repo, filename="mmproj-Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'
14
 
15
- # サーバーの設定(mmprojを追加)
16
  CMD ["--server", \
17
  "-m", "/app/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \
18
  "--mmproj", "/app/mmproj-Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-f16.gguf", \
 
2
 
3
  WORKDIR /app
4
 
5
+ # Python仮想環境を作るため最低限のものを入れる
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ python3-pip python3-venv \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
+ # venv を作成
11
+ RUN python3 -m venv /opt/venv
12
+ ENV PATH="/opt/venv/bin:$PATH"
13
+
14
+ # venv にだけ pip パッケージを入れる
15
+ RUN pip install --no-cache-dir -U huggingface_hub
16
+
17
+ # モデルとmmprojをダウンロード
18
  RUN python3 -c 'from huggingface_hub import hf_hub_download; \
19
  repo="HauhauCS/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive"; \
20
  hf_hub_download(repo_id=repo, filename="Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \
21
  hf_hub_download(repo_id=repo, filename="mmproj-Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'
22
 
 
23
  CMD ["--server", \
24
  "-m", "/app/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \
25
  "--mmproj", "/app/mmproj-Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive-f16.gguf", \