From d5b43b160a527f17c0aeb2c8cda10af9d9d2440f Mon Sep 17 00:00:00 2001 From: Eric Dobbs Date: Sat, 29 Aug 2020 12:23:41 -0600 Subject: [PATCH] add NPM_CONFIG_PREFIX environment variable Should remove one step from the instructions for developing plugins. It's a step I consistently miss in my haste to get on with the hacking and don't notice myself skip. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ab5f93d..08d8ebe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,5 +15,8 @@ VOLUME "/home/node/.wiki" EXPOSE 3000 USER node ENV PATH="${PATH}:/home/node/bin" +# Adding this line to make local plugin development easier +# see https://local-farm.wiki.dbbs.co/make-a-new-plugin.html +ENV NPM_CONFIG_PREFIX="${HOME}" ENTRYPOINT ["dumb-init"] CMD ["wiki", "--farm", "--security_type=friends"]