From 10da614d497af9554831a7058b1b66b8522855a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 25 Jun 2021 22:26:05 +0300 Subject: [PATCH] Use manually specified `--prefix` --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9da4a73..bbe7b75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM alpine MAINTAINER Pinecrypt Labs RUN apk add --update npm nginx rsync bash -RUN npm install --silent --no-optional -g nunjucks@2.5.2 nunjucks-date@1.2.0 node-forge bootstrap@4.0.0-alpha.6 jquery timeago tether font-awesome qrcode-svg xterm +RUN npm install --prefix /usr/local --silent --no-optional -g nunjucks@2.5.2 nunjucks-date@1.2.0 node-forge bootstrap@4.0.0-alpha.6 jquery timeago tether font-awesome qrcode-svg xterm +RUN test -e /usr/local/lib/node_modules/jquery/dist/jquery.min.js COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 80 443 8443 WORKDIR /var/lib/nginx/html/