Skip to content

Commit

Permalink
Fix NPM 5 build dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaricChan committed Apr 11, 2018
1 parent 084e818 commit a006ec6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ COPY . /RackHD/on-http/
WORKDIR /RackHD/on-http

RUN mkdir -p ./node_modules \
&& ln -s /RackHD/on-tasks ./node_modules/on-tasks \
&& ln -s /RackHD/on-core ./node_modules/on-core \
&& ln -s /RackHD/on-core/node_modules/di ./node_modules/di \
&& apt-get update \
&& apt-get install -y unzip curl \
&& npm install \
&& npm install apidoc@^0.12.1 \
&& npm install --production \
&& npm run taskdoc \
&& /RackHD/on-http/install-web-ui.sh \
&& /RackHD/on-http/install-swagger-ui.sh \
&& npm prune --production
&& rm -r ./node_modules/on-tasks ./node_modules/on-core ./node_modules/di \
&& ln -s /RackHD/on-tasks ./node_modules/on-tasks \
&& ln -s /RackHD/on-core ./node_modules/on-core \
&& ln -s /RackHD/on-core/node_modules/di ./node_modules/di

EXPOSE 9080 9090
VOLUME /RackHD/on-http/static/http/common
Expand Down

0 comments on commit a006ec6

Please sign in to comment.