diff options
author | Andreas Fankhauser (@tux-six) | 2022-07-20 13:48:47 +0200 |
---|---|---|
committer | Andreas Fankhauser (@tux-six) | 2022-07-20 13:48:47 +0200 |
commit | a0ea003d2d0c4b9769cc02ae18203110e0214e31 (patch) | |
tree | ea7d71fa3a13553f587d33d7eb8901925b8d3b71 /contrib/build-using-docker/Dockerfile | |
parent | 8715622ee3a0c0daa74934e5a349bd47c7fd23bd (diff) | |
parent | 4748d472f73f67a6dcaac5947dba94bf09bc7164 (diff) | |
download | DeflateAndInflate-a0ea003d2d0c4b9769cc02ae18203110e0214e31.zip DeflateAndInflate-a0ea003d2d0c4b9769cc02ae18203110e0214e31.tar.gz |
Merge 'Add doc how to build inside docker' to master
Diffstat (limited to 'contrib/build-using-docker/Dockerfile')
-rw-r--r-- | contrib/build-using-docker/Dockerfile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/build-using-docker/Dockerfile b/contrib/build-using-docker/Dockerfile index aaca6ad..c226a8a 100644 --- a/contrib/build-using-docker/Dockerfile +++ b/contrib/build-using-docker/Dockerfile @@ -4,7 +4,8 @@ FROM $PARENT_IMAGE ARG GIT_TAG= ARG CONFIGURE_OPTS= -ARG PKGS_TO_INSTALL="curl gcc git make musl-dev tar zlib-dev" +ARG PKGS_TO_ADD="curl gcc git make musl-dev tar zlib-dev" +ARG PKGS_TO_DEL="curl gcc git make musl-dev tar zlib-dev" ARG PKGINIT=true ARG PKGADD="apk add" ARG PKGDEL="apk del" @@ -14,15 +15,14 @@ WORKDIR /work RUN true \ && $PKGINIT \ - && $PKGADD $PKGS_TO_INSTALL \ - && git clone http://git.hiddenalpha.ch/DeflateAndInflate.git . \ - && git config advice.detachedHead false \ - && if test -n "$GIT_TAG"; then git checkout "$GIT_TAG"; fi \ + && $PKGADD $PKGS_TO_ADD \ + && BR=$(if test -n "$GIT_TAG"; then echo " --branch $GIT_TAG"; else echo ""; fi) \ + && git clone --depth 42 $BR https://github.com/hiddenalpha/DeflateAndInflate.git . \ && ./configure $CONFIGURE_OPTS \ && make clean && make && make install \ && find . -not -wholename './dist*' -delete \ && find /work -exec chown 1000:1000 {} + \ - && $PKGDEL $PKGS_TO_INSTALL \ + && $PKGDEL $PKGS_TO_DEL \ && $PKGCLEAN \ && true |