manibuilder/debian: Use `source' container instead of remote repo
Older versions couldn't be built anymore because they lack modern TLS
required to access sourcearcade.org. Using local repositories avoids
the trouble. For the affected, old containers, this also means that
all revisions to test will have to be available locally.
Change-Id: I551f11590387c5c78ca97e9fa09d156f6049ad0b
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/363
diff --git a/util/manibuilder/Dockerfile.debian b/util/manibuilder/Dockerfile.debian
index ada61d4..1835941 100644
--- a/util/manibuilder/Dockerfile.debian
+++ b/util/manibuilder/Dockerfile.debian
@@ -1,3 +1,5 @@
+FROM --platform=${BUILDPLATFORM} mani/source AS source
+
FROM manibase
RUN \
@@ -9,16 +11,15 @@
{ apt-get -qqy install libjaylink-dev libgpiod-dev || true; } && \
apt-get clean
+COPY --from=source /source /home/mani/flashprog
+RUN chown -R mani:mani /home/mani/flashprog
+
RUN mkdir -p -m 1777 /ccache
ENV GIT_SSL_NO_VERIFY=1
USER mani
-ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
-RUN \
- cd && \
- mkdir .ccache && chown mani:mani .ccache && \
- git clone ${ORIGIN} flashprog
+RUN cd && mkdir .ccache && chown mani:mani .ccache
ARG IDENT=mani
ARG CCACHE_MAX=32M