From 5e426b1aa6f06b9c2f0ad6a3f9d90280868bf53f Mon Sep 17 00:00:00 2001 From: petruknw Date: Wed, 20 May 2026 23:54:10 +1000 Subject: [PATCH] fix: pre-create /config/data at build time and set AURRAL_DATA_DIR as ENV --- aurral/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aurral/Dockerfile b/aurral/Dockerfile index e22a87a30d..fd64284b13 100644 --- a/aurral/Dockerfile +++ b/aurral/Dockerfile @@ -15,7 +15,13 @@ LABEL \ io.hass.version="${BUILD_VERSION}" \ maintainer="petruknw" +# Set data dir via Docker ENV so it's available before any shell script runs. +# /config is HA's addon_config mount point (always writable). +ENV AURRAL_DATA_DIR=/config/data + COPY rootfs / RUN chmod a+x /etc/services.d/aurral/run \ - && chmod a+x /usr/local/bin/docker-entrypoint.sh + && chmod a+x /usr/local/bin/docker-entrypoint.sh \ + # Pre-create the data dir so the entrypoint chown succeeds at startup + && mkdir -p /config/data