FROM localai/localai:latest-cpu ENV LOCALAI_P2P="true" ENV LOCALAI_FEDERATED="true" # Installer bashio pour accéder à la configuration Home Assistant RUN apt-get update && \ apt-get install -y --no-install-recommends \ curl jq && \ curl -J -L -o /tmp/bashio.tar.gz \ "https://github.com/hassio-addons/bashio/archive/v0.16.2.tar.gz" && \ mkdir /tmp/bashio && \ tar zxvf /tmp/bashio.tar.gz --strip 1 -C /tmp/bashio && \ mv /tmp/bashio/lib /usr/lib/bashio && \ ln -s /usr/lib/bashio/bashio /usr/bin/bashio && \ rm -rf /tmp/bashio* && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* COPY run.sh /build/custom-entrypoint.sh RUN chmod +x /build/custom-entrypoint.sh # Remplacer l'entrypoint par défaut ENTRYPOINT ["/build/custom-entrypoint.sh"]