summaryrefslogtreecommitdiff
path: root/contrib/build-using-docker/Dockerfile
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2022-08-23 23:07:34 +0200
committerAndreas Fankhauser hiddenalpha.ch2022-08-23 23:07:34 +0200
commit33940d2cde706cf6b061a0920e7b936d41edb0de (patch)
treea1453cf5947fcd84ddd9da4d57612f5890ab7ed3 /contrib/build-using-docker/Dockerfile
parented9d8f294b7d655886dc372d31c2479a7b527482 (diff)
downloadbulk-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/Dockerfile4
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 \