diff --git a/Dockerfile b/Dockerfile index 5a9357d462..c2e1e032c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ WORKDIR /home/sunbird/learner/ RUN mkdir -p /home/sunbird/learner/logs/ RUN touch /home/sunbird/learner/logs/learningServiceProject.log RUN ln -sf /dev/stdout /home/sunbird/learner/logs/learningServiceProject.log -CMD java -cp '/home/sunbird/learner/learning-service-1.0-SNAPSHOT/lib/*' play.core.server.ProdServerStart /home/sunbird/learner/learning-service-1.0-SNAPSHOT \ No newline at end of file +CMD java -cp '/home/sunbird/learner/learning-service-1.0-SNAPSHOT/lib/*' play.core.server.ProdServerStart /home/sunbird/learner/learning-service-1.0-SNAPSHOT diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100755 index 0000000000..ebf3487002 --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh +nohup java -cp '/home/sunbird/learner/learning-service-1.0-SNAPSHOT/lib/*' play.core.server.ProdServerStart /home/sunbird/learner/learning-service-1.0-SNAPSHOT & +sleep 60 +ln -sf /dev/stdout /home/sunbird/learner/logs/learningServiceProject.log