diff --git a/jsclient/Dockerfile b/jsclient/Dockerfile index 65963ca..188e6e3 100644 --- a/jsclient/Dockerfile +++ b/jsclient/Dockerfile @@ -20,10 +20,11 @@ ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install gnupg -y -RUN echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci bionic universe" >> /etc/apt/sources.list \ +RUN apt-get update && apt-get install -y gnupg \ + && echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci bionic universe" >> /etc/apt/sources.list \ && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \ && echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/chime/stable bionic universe" >> /etc/apt/sources.list \ - && apt-get install -y -q --no-install-recommends \ + && apt update && apt-get install -y -q --no-install-recommends \ apt-utils \ && apt-get install -y -q \ ca-certificates \ @@ -31,7 +32,8 @@ RUN echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci bionic universe" >> python3-sawtooth-cli \ curl \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* && apt-get clean \ + && sawtooth keygen jack && sawtooth keygen jain RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \ && apt-get install -y nodejs diff --git a/jsclient/public/js/main.js b/jsclient/public/js/main.js index 7cf6413..ed8cf43 100644 --- a/jsclient/public/js/main.js +++ b/jsclient/public/js/main.js @@ -117,7 +117,7 @@ function showBalance() { var userId = sessionStorage.getItem('userId'); $.post('/balance', { userId: userId }, function (data, textStatus, jqXHR) { - document.getElementById("balanceCheck").innerHTML ="Your balance is:" + "
" + data.balance; + document.getElementById("balanceCheck").innerHTML ="Your balance is:" + "
" + data.balance | 0; }, 'json'); }