code-slicer commited on
Commit
71901c4
·
verified ·
1 Parent(s): 3a3428b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -17,8 +17,10 @@ RUN apt-get update && apt-get install -y \
17
  # 수정된 명령어 (install.sh 스크립트 사용)
18
  RUN curl -fsSL https://ollama.com/install.sh | sh
19
 
20
- # (선택) 모델 캐시 경로 명시 – 기본은 /root/.ollama
21
- ENV OLLAMA_MODELS=/root/.ollama
 
 
22
 
23
  # 빌드 중 잠깐 서버를 띄워서 모델만 미리 받아두고 종료
24
  RUN set -eux; \
 
17
  # 수정된 명령어 (install.sh 스크립트 사용)
18
  RUN curl -fsSL https://ollama.com/install.sh | sh
19
 
20
+ # Ollama가 홈/모델 경로를 /app/.ollama 로 통일
21
+ ENV OLLAMA_HOME=/app/.ollama
22
+ ENV OLLAMA_MODELS=/app/.ollama
23
+ RUN mkdir -p /app/.ollama && chmod -R 777 /app/.ollama
24
 
25
  # 빌드 중 잠깐 서버를 띄워서 모델만 미리 받아두고 종료
26
  RUN set -eux; \