Files
hass-addons/localai-p2p-worker/Dockerfile
alex feb7c8214e
Some checks failed
Builder / Build addons (localai-p2p-master, amd64) (push) Failing after 9s
Builder / Build addons (localai-p2p-worker, amd64) (push) Failing after 9s
Validate / validate (push) Failing after 2s
Builder / Create release (push) Has been skipped
4
2025-05-30 15:23:24 +02:00

25 lines
614 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
# Installer LocalAI
RUN apk add --no-cache \
curl \
bash \
&& curl -Lo /usr/local/bin/local-ai \
"https://github.com/mudler/LocalAI/releases/latest/download/local-ai-Linux-x86_64" \
&& chmod +x /usr/local/bin/local-ai
# Variables d'environnement pour LocalAI
ENV LOCALAI_P2P="true"
ENV LOCALAI_FEDERATED="true"
ENV LOCALAI_P2P_LISTEN_PORT="9090"
ENV LOCALAI_ADDRESS="0.0.0.0:8080"
ENV LOCALAI_CORS="true"
ENV LOCALAI_CORS_ALLOW_ORIGINS="*"
# Copier le script de démarrage
COPY run.sh /usr/bin/run.sh
RUN chmod +x /usr/bin/run.sh
CMD ["/usr/bin/run.sh"]