Files
usb-crash-cart/Dockerfile
scott 673d6216ef
All checks were successful
Docker Build and Publish / Build Docker image and publish to Gitea (push) Successful in 58s
Add libsdl1.2debian to fix missing libSDL-1.2.so.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 12:56:31 -04:00

29 lines
835 B
Docker

FROM ubuntu:16.04
# Install GTK2 and X11 runtime dependencies needed by the bundled wxWidgets 2.9
RUN apt-get update && apt-get install -y --no-install-recommends \
libgtk2.0-0 \
libsm6 \
libxxf86vm1 \
libxinerama1 \
libxrandr2 \
libxcursor1 \
libxi6 \
libxdamage1 \
libxcomposite1 \
libxext6 \
libsdl1.2debian \
&& rm -rf /var/lib/apt/lists/*
# Copy and install the crash cart software
# Place the .deb in packages/crash-cart.deb before building
COPY packages/crash-cart.deb /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
ENV LD_LIBRARY_PATH=/opt/usb-crash-cart-adapter/20240517/guts
ENV DISPLAY=:0
ENTRYPOINT ["/opt/usb-crash-cart-adapter/20240517/wrapper"]