@@ -11,16 +11,33 @@ ENV DEBIAN_FRONTEND=noninteractive
1111
1212# Install base dependencys
1313RUN apt-get update
14- RUN apt-get install -y \
14+ RUN apt-get install -y --no-install-recommends \
1515 devscripts equivs build-essential lintian clang git lsb-release \
1616 python3 gpg dirmngr sudo xauth curl kmod \
17- cppcheck shellcheck --no-install-recommends && \
17+ cppcheck shellcheck && \
1818 apt-get clean
1919
20- # Install linuxcnc dependencys
20+ # Install linuxcnc build dependencys
2121RUN --mount=type=bind,source=.,target=/linuxcnc-src,rw \
2222 cd linuxcnc-src && \
23- .github/scripts/install-deps.sh && \
23+ debian/configure && \
24+ apt-get -y build-dep . && \
25+ apt-get clean
26+
27+ # Install linuxcnc install dependencys
28+ # Needs all debian packages, just build them
29+ # Install all and then remove the linuxcnc packages selectively
30+ # A bit hacky but does the job
31+ RUN --mount=type=bind,source=.,target=/linuxcnc-src,rw \
32+ cd linuxcnc-src && \
33+ debian/configure && \
34+ debuild -us -uc --build=any && \
35+ apt-get install -y --no-install-recommends \
36+ ../linuxcnc-uspace_*.deb \
37+ ../linuxcnc-uspace-dev_*.deb \
38+ ../linuxcnc-uspace-dbgsym_*.deb && \
39+ apt-get purge -y linuxcnc-uspace linuxcnc-uspace-dev linuxcnc-uspace-dbgsym && \
40+ rm -f ../linuxcnc*.* && \
2441 apt-get clean
2542
2643# Add a user for linuxcnc with sudo nopasswd
0 commit comments