From 85e3eb7eb413892c76c9316ade2001950e2935df Mon Sep 17 00:00:00 2001 From: AlaricChan Date: Wed, 11 Apr 2018 01:11:49 +0000 Subject: [PATCH] Fix NPM5 build dependency issue --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3eb55a..6c177ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,10 @@ COPY . /RackHD/on-dhcp-proxy/ WORKDIR /RackHD/on-dhcp-proxy RUN mkdir -p ./node_modules \ + && npm install --ignore-scripts --production \ + && rm -r ./node_modules/on-core ./node_modules/di \ && ln -s /RackHD/on-core ./node_modules/on-core \ - && ln -s /RackHD/on-core/node_modules/di ./node_modules/di \ - && npm install --ignore-scripts --production + && ln -s /RackHD/on-core/node_modules/di ./node_modules/di EXPOSE 68/udp 4011 CMD [ "node", "/RackHD/on-dhcp-proxy/index.js" ]