Skip to content

Commit 85e3eb7

Browse files
committed
Fix NPM5 build dependency issue
1 parent 95ca3e2 commit 85e3eb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ COPY . /RackHD/on-dhcp-proxy/
99
WORKDIR /RackHD/on-dhcp-proxy
1010

1111
RUN mkdir -p ./node_modules \
12+
&& npm install --ignore-scripts --production \
13+
&& rm -r ./node_modules/on-core ./node_modules/di \
1214
&& ln -s /RackHD/on-core ./node_modules/on-core \
13-
&& ln -s /RackHD/on-core/node_modules/di ./node_modules/di \
14-
&& npm install --ignore-scripts --production
15+
&& ln -s /RackHD/on-core/node_modules/di ./node_modules/di
1516

1617
EXPOSE 68/udp 4011
1718
CMD [ "node", "/RackHD/on-dhcp-proxy/index.js" ]

0 commit comments

Comments
 (0)