ollama_json / Dockerfile
Yaya86's picture
Update Dockerfile
fff9459 verified
raw
history blame contribute delete
646 Bytes
FROM ollama/ollama:latest
# Créez le répertoire Ollama et changez ses permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama
# Installez les dépendances nécessaires
RUN apt-get update && apt-get install -y curl python3 python3-pip
# Créez le répertoire cache de Hugging Face avec les bonnes permissions
RUN mkdir -p /.cache/huggingface && chmod -R 777 /.cache
# Installez la CLI Hugging Face
RUN pip3 install -U "huggingface_hub[cli]"
# Copiez le script shell dans le conteneur
COPY start.sh /start.sh
RUN chmod +x /start.sh
ARG HF_TOKEN
ENV HF_TOKEN=$HF_TOKEN
# Définissez le script comme point d'entrée
ENTRYPOINT ["/start.sh"]