fix: pre-create /config/data at build time and set AURRAL_DATA_DIR as ENV

This commit is contained in:
petruknw
2026-05-20 23:54:10 +10:00
parent 971225c527
commit 5e426b1aa6

View File

@@ -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