From 8fd9adf232b7963e96250a0a08fbe3082e0cbf78 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 22 Oct 2024 14:02:55 -0400 Subject: [PATCH] Another attempt at more resilient building --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c2af14..7ce4b3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,13 @@ ARG WIKI_PACKAGE=wiki@0.37.0 USER node +RUN cd /tmp && \ + git clone https://github.com/fedwiki/wiki && \ + cd /tmp/wiki && \ + sed -i 's@"wiki-security-passportjs": "^0.10.0"@"wiki-security-passportjs": "git+https://git.coopcloud.tech/wiki-cafe/wiki-security-passportjs"@' package.json && \ + npm pack -RUN npm install -g --prefix . $WIKI_PACKAGE && \ - cd lib/node_modules/wiki && \ - npm install --prefix . git+https://git.coopcloud.tech/wiki-cafe/wiki-security-passportjs +RUN npm install -g --prefix . file:/tmp/wiki/wiki-0.37.1.tgz RUN mkdir -p .wiki