Debug fahclient installation with error handling

This commit is contained in:
2025-07-18 18:59:34 +02:00
parent d1d70c3fec
commit df2403edc2

View File

@@ -1,23 +1,20 @@
FROM ghcr.io/hassio-addons/debian-base:7.2.0 FROM ghcr.io/hassio-addons/debian-base:7.2.0
RUN \
# Set up package sources echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \
RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \ apt-get update && \
apt-get update && \ apt-get install -y --no-install-recommends \
apt-get install -y --no-install-recommends \ curl \
curl \ ca-certificates \
ca-certificates \ gnupg && \
gnupg && \ curl -sSL https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/release/fah-client_8.4.9_amd64.deb -o /fahclient.deb && \
curl -sSL https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/release/fah-client_8.4.9_amd64.deb -o /fahclient.deb && \ echo "Installing fahclient..." && \
dpkg -i /fahclient.deb || apt-get install -f -y && \ dpkg -i /fahclient.deb && \
rm /fahclient.deb && \ apt-get install -f -y && \
apt-get clean && \ echo "Verifying installation..." && \
rm -rf /var/lib/apt/lists/* ls -l /usr/bin/fahclient || echo "fahclient not found" && \
rm /fahclient.deb && \
# Copy rootfs apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY rootfs / COPY rootfs /
# Expose port
EXPOSE 7396 EXPOSE 7396
# Default command with support for CLI args
CMD ["/usr/bin/fahclient", "--config", "/config/config.xml", "${CLI_ARGS}"] CMD ["/usr/bin/fahclient", "--config", "/config/config.xml", "${CLI_ARGS}"]