mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-19 04:20:32 +02:00
fix: pre-create /config/data at build time and set AURRAL_DATA_DIR as ENV
This commit is contained in:
@@ -15,7 +15,13 @@ LABEL \
|
|||||||
io.hass.version="${BUILD_VERSION}" \
|
io.hass.version="${BUILD_VERSION}" \
|
||||||
maintainer="petruknw"
|
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 /
|
COPY rootfs /
|
||||||
|
|
||||||
RUN chmod a+x /etc/services.d/aurral/run \
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user