Skip to content

Commit 8843fa9

Browse files
committed
fix: Build deb with gzip compression
1 parent 73118a8 commit 8843fa9

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM debian:buster-slim
22

33
RUN apt-get update && apt-get install -y devscripts build-essential cpio rsync
44
COPY ./docker/entrypoint.sh /
5+
COPY ./docker/dpkg-deb-wrapper /usr/local/bin/dpkg-deb
56
VOLUME /src
67
WORKDIR /src
78
ENTRYPOINT /entrypoint.sh

docker/dpkg-deb-wrapper

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
/usr/bin/dpkg-deb -Zgzip $@

docker/entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export PATH=/usr/local/bin:$PATH
2+
alias debuild="debuild --preserve-envvar PATH"
13
mkdir /build
24
rsync -rtvpl /src/ /build
35
mkdir -p /src/out

0 commit comments

Comments
 (0)