Use dpkg-deb --extract to bypass postinstall scripts
All checks were successful
Docker Build and Publish / Build Docker image and publish to Gitea (push) Successful in 46s

The package postinstall runs udevadm and xdg-desktop-icon which don't
exist in a container. --extract drops the files in place without running
any maintainer scripts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 12:43:53 -04:00
parent 9aa722065b
commit 12e52124d0

View File

@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Copy and install the crash cart software # Copy and install the crash cart software
# Place the .deb in packages/crash-cart.deb before building # Place the .deb in packages/crash-cart.deb before building
COPY packages/crash-cart.deb /tmp/crash-cart.deb COPY packages/crash-cart.deb /tmp/crash-cart.deb
RUN mkdir -p /etc/udev/rules.d && dpkg --force-depends -i /tmp/crash-cart.deb && rm /tmp/crash-cart.deb RUN dpkg-deb --extract /tmp/crash-cart.deb / && rm /tmp/crash-cart.deb
# Prefer bundled libs (libpng12, libpython2.7, libwx*, etc.) over system ones # Prefer bundled libs (libpng12, libpython2.7, libwx*, etc.) over system ones
ENV LD_LIBRARY_PATH=/opt/usb-crash-cart-adapter/20240517/guts ENV LD_LIBRARY_PATH=/opt/usb-crash-cart-adapter/20240517/guts