From e76248a2cd5cdb7d601683bf3be4e598311320a3 Mon Sep 17 00:00:00 2001 From: AlaricChan Date: Tue, 10 Apr 2018 09:10:40 +0000 Subject: [PATCH] Fix NPM5 build dependency issue --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0459ab9..416b066 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,10 @@ COPY . /RackHD/on-tftp/ WORKDIR /RackHD/on-tftp 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 69/udp VOLUME /RackHD/on-tftp/static/tftp