Moved Debian package sources to a subdirectory of the repository.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
ARG UBUNTU_VERSION=24.04
|
||||
FROM ubuntu:${UBUNTU_VERSION}
|
||||
ARG HOST_UID
|
||||
ARG HOST_GID
|
||||
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
dpkg-dev \
|
||||
debhelper \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /build
|
||||
COPY . src/
|
||||
RUN cd src && dpkg-buildpackage -us -uc -b
|
||||
|
||||
RUN mkdir /out \
|
||||
&& find /build -maxdepth 1 \( -name '*.deb' -o -name '*.buildinfo' -o -name '*.changes' \) \
|
||||
-exec install -o "$HOST_UID" -g "$HOST_GID" -m 0644 {} /out/ \;
|
||||
Reference in New Issue
Block a user