home-assistant-apps/cookcli/Dockerfile

24 lines
647 B
Docker

# Utilise l'image de base Home Assistant
ARG BUILD_FROM
FROM ${BUILD_FROM}
# Installation des dépendances
RUN apk add --no-cache \
curl \
bash \
git \
openssh-client \
nginx \
&& curl -L https://github.com/cooklang/CookCLI/releases/latest/download/cook-x86_64-unknown-freebsd.tar.gz | tar xz \
&& mv cook /usr/local/bin/ \
&& chmod a+x /usr/local/bin/cook
# Copie du système de fichiers
COPY rootfs /
# Rendre tous les scripts run exécutables
RUN find /etc -name "run" -type f -exec chmod +x {} \; \
&& find /usr -name "*.sh" -type f -exec chmod +x {} \;
# Point d'entrée S6-overlay
ENTRYPOINT ["/init"]