diff options
author | Andreas Fankhauser hiddenalpha.ch | 2022-08-23 23:07:34 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2022-08-23 23:07:34 +0200 |
commit | 33940d2cde706cf6b061a0920e7b936d41edb0de (patch) | |
tree | a1453cf5947fcd84ddd9da4d57612f5890ab7ed3 /contrib/build-using-docker/Dockerfile | |
parent | ed9d8f294b7d655886dc372d31c2479a7b527482 (diff) | |
download | bulk-ln-33940d2cde706cf6b061a0920e7b936d41edb0de.zip bulk-ln-33940d2cde706cf6b061a0920e7b936d41edb0de.tar.gz |
Cleanup
- Fix version string while dockerbuild.
- Use quotes in log msgs.
- Add apt cleanup in debian build example.
- Fix off-by-one error in summary log msg.
- Allow to clone by tag within Dockerfile.
- Add some missing LFs in err msgs.
Diffstat (limited to 'contrib/build-using-docker/Dockerfile')
-rw-r--r-- | contrib/build-using-docker/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/build-using-docker/Dockerfile b/contrib/build-using-docker/Dockerfile index c56cacd..00c1132 100644 --- a/contrib/build-using-docker/Dockerfile +++ b/contrib/build-using-docker/Dockerfile @@ -2,7 +2,7 @@ ARG PARENT_IMAGE=alpine:3.16.0 FROM $PARENT_IMAGE -ARG GIT_TAG= +ARG GIT_TAG=master ARG CONFIGURE_OPTS= ARG PKGINIT=true ARG PKGADD="apk add" @@ -16,7 +16,7 @@ WORKDIR /work RUN true \ && $PKGINIT \ && $PKGADD $PKGS_TO_ADD \ - && git clone --depth 1 https://github.com/hiddenalpha/bulk-ln.git . \ + && git clone --depth 42 --branch "${GIT_TAG:?}" https://github.com/hiddenalpha/bulk-ln.git . \ && git config advice.detachedHead false \ && if test -n "$GIT_TAG"; then git checkout "$GIT_TAG"; fi \ && ./configure $CONFIGURE_OPTS \ |