Skip to content

Commit

Permalink
dockerfile optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
empierre committed Mar 29, 2016
1 parent 2b435c6 commit 2d85c03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ RUN npm install -g [email protected]
RUN wget http://www.e-nef.com/domoticz/mdah/node-mydomoathome-0.0.47.deb
RUN dpkg -i node-mydomoathome-0.0.47.deb
RUN mv /etc/mydomoathome/config.json /etc/mydomoathome/config.json.old
VOLUME /etc/mydomoathome
VOLUME /etc/mydomoathome/config.json

##################################################
Expand All @@ -66,4 +65,4 @@ WORKDIR dist
ADD . dist
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \
npm install -g forever nodemon mocha supervisor
CMD ["forever", "/usr/share/mydomoathome/app/mdah.js"]
CMD ["forever", "--minUptime 1000 --spinSleepTime 1000 --max-old-space-size=128 /usr/share/mydomoathome/app/mdah.js"]

0 comments on commit 2d85c03

Please sign in to comment.