diff --git a/Dockerfile b/Dockerfile index f1492da..d8620c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,7 @@ ADD package.json /server/package.json ADD exthernal-login-api /server/exthernal-login-api ADD exthernal-ttc-api /server/exthernal-ttc-api +ADD start-accountingwep.sh /server/start-accountingwep.sh +ADD start-login.sh /server/start-login.sh + ENTRYPOINT ["/entrypoint"] diff --git a/entrypoint b/entrypoint index eac4d14..cac8672 100644 --- a/entrypoint +++ b/entrypoint @@ -1,6 +1,3 @@ #!/bin/sh -cd /server/exthernal-login-api -& npm start - -cd /server/exthernal-accountingwep-api -& npm start \ No newline at end of file +./start-login.sh & +exec ./start-accountingwep.sh \ No newline at end of file diff --git a/start-accountingwep.sh b/start-accountingwep.sh new file mode 100644 index 0000000..f009920 --- /dev/null +++ b/start-accountingwep.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /server/exthernal-accountingwep-api +npm start \ No newline at end of file diff --git a/start-login.sh b/start-login.sh new file mode 100644 index 0000000..57c2836 --- /dev/null +++ b/start-login.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /server/exthernal-login-api +npm start \ No newline at end of file