From d7892255ee3f14a8f1b1e798e65f9e73458db315 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 22 Nov 2022 19:29:54 -0800 Subject: [PATCH] Restore previous YOLOing-patched-wiki-security-passportjs --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4eba7c4..673c729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ RUN apk add --update --no-cache \ WORKDIR "/home/node" ARG WIKI_PACKAGE=wiki@0.28.0 RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE" +RUN su node -c "cd lib/node_modules/wiki/node_modules && rm -r wiki-security-passportjs && git clone https://github.com/3-w-c/wiki-security-passportjs" +RUN su node -c "cd lib/node_modules/wiki/node_modules/wiki-security-passportjs && npm install && node_modules/grunt/bin/grunt" RUN su node -c "mkdir -p .wiki" VOLUME "/home/node/.wiki" EXPOSE 3000 @@ -14,4 +16,4 @@ USER node ENV PATH="${PATH}:/home/node/bin" ENV NPM_CONFIG_PREFIX="${HOME}" ENTRYPOINT ["dumb-init"] -CMD ["wiki", "--farm", "--security_type=friends"] +CMD ["wiki", "--farm"]