Fix & build

This commit is contained in:
Michele Marcucci 2019-01-28 18:57:41 +01:00
parent b472756df8
commit 9b6a469bb5
3 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ RUN npm --version
RUN npm install yarn
COPY ./package.json /app/package.json
COPY ./yarn.lock /app/yarn.lock
RUN rm -rf /app/package-lock.json
ENV NODE_ENV=production
RUN ./node_modules/.bin/yarn --production
RUN rm ./*.json ./yarn.lock

Binary file not shown.

View File

@ -75,7 +75,7 @@ disksJson=$(for d in $(df -P -x tmpfs -x devtmpfs -x ecryptfs -x nfs -x cifs -T
bfgminerLog=""
if [ -e "/tmp/bfgminer.log" ]
then
bfgminerLog=`tail -10 /tmp/bfgminer.log | tr '\n' '|'`
bfgminerLog=`sudo tail -10 /tmp/bfgminer.log | tr '\n' '|'`
fi
# Processes