diff --git a/Dockerfile b/Dockerfile index 397c522..9dd98ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,20 @@ FROM ghcr.io/hassio-addons/debian-base:7.2.0 - -# Set up package sources -RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - curl \ - ca-certificates \ - 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 && \ - dpkg -i /fahclient.deb || apt-get install -f -y && \ - rm /fahclient.deb && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# Copy rootfs +RUN \ + echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends \ + curl \ + ca-certificates \ + 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 && \ + echo "Installing fahclient..." && \ + dpkg -i /fahclient.deb && \ + apt-get install -f -y && \ + echo "Verifying installation..." && \ + ls -l /usr/bin/fahclient || echo "fahclient not found" && \ + rm /fahclient.deb && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* COPY rootfs / - -# Expose port EXPOSE 7396 - -# Default command with support for CLI args CMD ["/usr/bin/fahclient", "--config", "/config/config.xml", "${CLI_ARGS}"] \ No newline at end of file