diff --git a/.dockerignore b/.dockerignore index b15d17eb1..93fbf8059 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,7 +5,6 @@ debug.log *.db -.git* .vscode README.md LICENSE diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 9aa55cfaf..dd20e252d 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -1,7 +1,7 @@ FROM node:current-alpine +RUN apk add --no-cache git WORKDIR /app -COPY package*.json ./ -RUN npm install && mkdir -p Data-Storage Log-Files My-Workspaces \ +RUN mkdir -p Data-Storage Log-Files My-Workspaces \ && addgroup -S superalgos \ && adduser -S superalgos -G superalgos \ && chown -R superalgos:superalgos /app diff --git a/Launch-Scripts/launch-linux-mac.sh b/Launch-Scripts/launch-linux-mac.sh index d67c15fd6..7c9d51d42 100755 --- a/Launch-Scripts/launch-linux-mac.sh +++ b/Launch-Scripts/launch-linux-mac.sh @@ -1,4 +1,4 @@ #!/bin/sh cd .. -node run +node platform "$SHELL" \ No newline at end of file diff --git a/Launch-Scripts/launch-windows.bat b/Launch-Scripts/launch-windows.bat index 7fc1cfa6a..51aa1d06f 100644 --- a/Launch-Scripts/launch-windows.bat +++ b/Launch-Scripts/launch-windows.bat @@ -1,3 +1,3 @@ cd /d %~dp0 cd .. -cmd /k "node run" \ No newline at end of file +cmd /k "node platform" \ No newline at end of file diff --git a/platform.js b/platform.js index 0f4511990..1684ce7c7 100644 --- a/platform.js +++ b/platform.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node /* The Superalgos Platform is a software for algo-traders: @@ -25,7 +26,7 @@ if ( console.log('') console.log('TELEGRAM COMMUNITY: https://t.me/superalgoscommunity') console.log('') - console.log('USAGE: node runPlatform [help] [noBrowser] [minMemo]') + console.log('USAGE: node platform [help] [noBrowser] [minMemo]') console.log('') console.log('OPTIONS:') console.log('') @@ -112,5 +113,5 @@ function fatalErrorHelp() { console.log('') console.log('If you continue having trouble to start the Superalgos Platform Client try:') console.log('') - console.log('node runPlatform minMemo noBrowser') + console.log('node platform minMemo noBrowser') }