s
Some checks failed
Builder / Build addons (localai-p2p-master, amd64) (push) Failing after 8s
Builder / Build addons (localai-p2p-worker, amd64) (push) Failing after 8s
Validate / validate (push) Failing after 2s
Builder / Create release (push) Has been skipped

This commit is contained in:
2025-05-30 15:59:15 +02:00
parent 1364c3c492
commit 664fc49a93
2 changed files with 10 additions and 12 deletions

View File

@@ -2,18 +2,16 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/ubuntu-base:9.0.1
FROM ${BUILD_FROM}
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Installer LocalAI
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget \
ca-certificates && \
wget -O /tmp/localai.tar.gz \
"https://github.com/mudler/LocalAI/releases/download/v2.22.1/local-ai-Linux-x86_64.tar.gz" && \
tar -xzf /tmp/localai.tar.gz -C /usr/local/bin/ && \
chmod +x /usr/local/bin/local-ai && \
rm /tmp/localai.tar.gz && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN \
curl -L -o /tmp/localai.tar.gz \
"https://github.com/mudler/LocalAI/releases/download/v2.22.1/local-ai-Linux-x86_64.tar.gz" \
&& tar -xzf /tmp/localai.tar.gz -C /usr/local/bin/ \
&& chmod +x /usr/local/bin/local-ai \
&& rm /tmp/localai.tar.gz
# Variables d'environnement pour LocalAI
ENV LOCALAI_P2P="true"