Fix PID 1 issue and update to version 1.0.2
This commit is contained in:
parent
71d9a37964
commit
2eaed37ef6
3 changed files with 10 additions and 4 deletions
|
@ -1,9 +1,15 @@
|
||||||
# Use the official Home Assistant add-on base image
|
# Use the official Home Assistant add-on base image
|
||||||
FROM ghcr.io/hassio-addons/base:14.0.0
|
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 the script into the container
|
||||||
COPY run.sh /run.sh
|
COPY run.sh /run.sh
|
||||||
RUN chmod +x /run.sh
|
RUN chmod +x /run.sh
|
||||||
|
|
||||||
# Run the script as the main process
|
# Run the script as the main process
|
||||||
CMD [ "/run.sh" ]
|
ENTRYPOINT [ "/run.sh" ]
|
|
@ -1,5 +1,5 @@
|
||||||
name: "Newt Add-on"
|
name: "Newt Add-on"
|
||||||
version: "1.0.1"
|
version: "1.0.2"
|
||||||
slug: "newt"
|
slug: "newt"
|
||||||
description: "Runs the Newt container inside Home Assistant"
|
description: "Runs the Newt container inside Home Assistant"
|
||||||
arch:
|
arch:
|
||||||
|
|
|
@ -30,5 +30,5 @@ docker run -d --restart unless-stopped \
|
||||||
|
|
||||||
echo "Newt container is running!"
|
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
|
exec tail -f /dev/null
|
Loading…
Add table
Add a link
Reference in a new issue