Files
hass-addons/localai-p2p-master/Dockerfile
alex 10a8425bb7
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
8
2025-05-30 15:11:13 +02:00

27 lines
801 B
Docker

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"]