summaryrefslogtreecommitdiff
path: root/contrib/build-using-docker/Dockerfile
diff options
context:
space:
mode:
authorAndreas Fankhauser (@tux-six)2022-07-12 23:38:51 +0200
committerAndreas Fankhauser (@tux-six)2022-07-12 23:38:51 +0200
commitc14a229801b53e67118acfac709acdf30fb9a481 (patch)
tree5f27514a9a619385f82e097ac9f292de45651376 /contrib/build-using-docker/Dockerfile
parent6d4c51fe445b80f56506df7541c8d4fd2488dbd1 (diff)
downloadbulk-ln-c14a229801b53e67118acfac709acdf30fb9a481.zip
bulk-ln-c14a229801b53e67118acfac709acdf30fb9a481.tar.gz
(DockerBuild) Add hint about how to build for debian plus some cleanup
Diffstat (limited to 'contrib/build-using-docker/Dockerfile')
-rw-r--r--contrib/build-using-docker/Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/build-using-docker/Dockerfile b/contrib/build-using-docker/Dockerfile
index 78f1a85..9a6df6b 100644
--- a/contrib/build-using-docker/Dockerfile
+++ b/contrib/build-using-docker/Dockerfile
@@ -4,25 +4,26 @@ FROM $PARENT_IMAGE
ARG GIT_TAG=
ARG CONFIGURE_OPTS=
-ARG PKGS_TO_INSTALL="curl gcc git make musl-dev tar"
ARG PKGINIT=true
ARG PKGADD="apk add"
ARG PKGDEL="apk del"
ARG PKGCLEAN=true
+ARG PKGS_TO_ADD="curl gcc git make musl-dev tar"
+ARG PKGS_TO_DEL="curl gcc git make musl-dev tar"
WORKDIR /work
RUN true \
&& $PKGINIT \
- && $PKGADD $PKGS_TO_INSTALL \
- && git clone https://git.hiddenalpha.ch/bulk-ln.git . \
+ && $PKGADD $PKGS_TO_ADD \
+ && git clone --depth 1 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 \
&& 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