Fix PID 1 issue and update to version 1.0.2

This commit is contained in:
Jørgen Ferdinand 2025-03-07 22:31:13 +01:00
parent 71d9a37964
commit 2eaed37ef6
3 changed files with 10 additions and 4 deletions

View file

@ -1,9 +1,15 @@
# Use the official Home Assistant add-on base image
FROM ghcr.io/hassio-addons/base:14.0.0
# Set the correct Shell for Home Assistant add-ons
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install necessary dependencies (if needed)
RUN apk add --no-cache docker-cli bash
# Copy the script into the container
COPY run.sh /run.sh
RUN chmod +x /run.sh
# Run the script as the main process
CMD [ "/run.sh" ]
ENTRYPOINT [ "/run.sh" ]

View file

@ -1,5 +1,5 @@
name: "Newt Add-on"
version: "1.0.1"
version: "1.0.2"
slug: "newt"
description: "Runs the Newt container inside Home Assistant"
arch:

View file

@ -30,5 +30,5 @@ docker run -d --restart unless-stopped \
echo "Newt container is running!"
# Prevent the script from exiting (keeps the add-on running)
# Prevent the script from exiting (Keeps the add-on running)
exec tail -f /dev/null