-
Notifications
You must be signed in to change notification settings - Fork 10
/
DebPackage24.Dockerfile
40 lines (34 loc) · 1.21 KB
/
DebPackage24.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Build .deb file for Debian 12, Ubuntu 23.10, Ubuntu 24.04
FROM debian:bookworm AS build-stage
WORKDIR /LimeSuiteNG/source
COPY install_dependencies.sh install_dependencies.sh
RUN apt update && \
apt-get install -y --no-install-recommends \
debhelper \
dh-python \
dpkg-dev \
gnuradio-dev \
&& \
./install_dependencies.sh -y && \
rm -rf /var/lib/apt/lists/*
COPY cmake/ cmake/
COPY docs/doxygen docs/doxygen
COPY debian/ debian/
COPY external/ external/
COPY udev-rules/ udev-rules/
COPY plugins/ plugins/
COPY Changelog.txt Changelog.txt
COPY CMakeLists.txt CMakeLists.txt
COPY README.md README.md
COPY GUI/ GUI/
COPY embedded/ embedded/
COPY src/ src/
RUN patch debian/control < debian/control.gnuradio.patch
RUN patch debian/control < debian/control.no_kernel_driver.patch
RUN patch debian/rules < debian/rules.docker.patch
RUN patch debian/rules < debian/rules.gnuradio.patch
# https://github.com/gnuradio/gnuradio/issues/6477
RUN patch $(find / -path */dist-packages/gnuradio/blocktool/core/parseheader_generic.py) < plugins/gr-limesdr/patch_gnuradio.patch
RUN dpkg-buildpackage --build=binary --no-sign
FROM scratch AS export-stage
COPY --from=build-stage /LimeSuiteNG/*.* /