How can "sbt runAll" command stay alive? Does "sbt runAll" command have parameters for it to stay alive?
I created a Logam sample file and then a docker image by installing Java v8 and sbt v1.2.1. My Dockerfile is at the end of my question.
When I run docker command "docker run -p 57798:57797 -d lagom-hello-world",
sbt command goes through its initiating process and everything appears ok. However, sbt command ends itself as soon as it completes the initiation process. How can "sbt runAll" command stay alive?
Contents in My Dockerfile
FROM openjdk:8
RUN \
curl -L -o sbt-1.2.1.deb http://dl.bintray.com/sbt/debian/sbt-1.2.1.deb && \
dpkg -i sbt-1.2.1.deb && \
rm sbt-1.2.1.deb && \
apt-get update && \
apt-get install sbt && \
sbt sbtVersion
EXPOSE 57797
WORKDIR /app
ADD . /app
CMD sbt runAll