Files
Paul WilliamsandPaal 2716cef481 fix(aurral): apply the download_folder option (#3098)
The download_folder option was never read: the Dockerfile set fixed
DOWNLOAD_FOLDER and WEEKLY_FLOW_FOLDER values. Aurral reads
WEEKLY_FLOW_FOLDER as a deprecated alias that takes precedence over
DOWNLOAD_FOLDER, so downloads always went to
/share/aurral/downloads/weekly-flow. The entrypoint now exports
DOWNLOAD_FOLDER from the option and unsets WEEKLY_FLOW_FOLDER.

Co-authored-by: Paal <paal@Paals-MacBook-Pro-3.local>
2026-10-04 07:47:54 +02:00

32 lines
1.0 KiB
Docker

# ==============================================================
# Home Assistant Add-on: Aurral
# Wraps the upstream ghcr.io/lklynet/aurral image.
# ==============================================================
ARG BUILD_FROM
FROM ${BUILD_FROM}
ARG BUILD_VERSION
ARG BUILD_ARCH
LABEL \
io.hass.name="Aurral" \
io.hass.description="Self-hosted music discovery and request management for Lidarr" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version="${BUILD_VERSION}" \
maintainer="petruknw"
ENV DOWNLOAD_FOLDER=/share/aurral/downloads
# Replace the upstream data/downloads dirs with symlinks into HA persistent storage.
# Must be done at build time — the dirs are owned by a non-root user at runtime.
RUN rm -rf /app/backend/data && ln -s /config/data /app/backend/data \
&& rm -rf /app/downloads && ln -s /share/aurral/downloads /app/downloads
COPY rootfs /
RUN chmod a+x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["node", "backend/server.js"]