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