diff --git a/Dockerfile.api b/Dockerfile.api index bbcb586..f5d4664 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -27,4 +27,4 @@ RUN cd /opt \ && cp baas-server-$BAAS_VERSION/server/api.war /opt/tomcat/webapps/ \ && /bin/rm -rf baas-server-$BAAS_VERSION* -CMD /bootstrap.sh +CMD ["/bootstrap.sh"] diff --git a/Dockerfile.both b/Dockerfile.both index 896f8ba..28f9f16 100644 --- a/Dockerfile.both +++ b/Dockerfile.both @@ -27,4 +27,4 @@ RUN cd /opt \ && cp baas-server-$BAAS_VERSION/server/*.war /opt/tomcat/webapps/ \ && /bin/rm -rf baas-server-$BAAS_VERSION* -CMD /bootstrap.sh +CMD ["/bootstrap.sh"] diff --git a/Dockerfile.console b/Dockerfile.console index 4f2edde..d555559 100644 --- a/Dockerfile.console +++ b/Dockerfile.console @@ -27,4 +27,4 @@ RUN cd /opt \ && cp baas-server-$BAAS_VERSION/server/console.war /opt/tomcat/webapps/ \ && /bin/rm -rf baas-server-$BAAS_VERSION* -CMD /bootstrap.sh +CMD ["/bootstrap.sh"] diff --git a/Dockerfile.in b/Dockerfile.in index c223b28..fee0573 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -27,4 +27,4 @@ RUN cd /opt \ && cp baas-server-$BAAS_VERSION/server/%%SERVER_TYPE%%.war /opt/tomcat/webapps/ \ && /bin/rm -rf baas-server-$BAAS_VERSION* -CMD /bootstrap.sh +CMD ["/bootstrap.sh"] diff --git a/bootstrap.sh b/bootstrap.sh index 632083e..15d1499 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -88,4 +88,4 @@ else fi # tomcat 起動 (foreground) -/opt/tomcat/bin/catalina.sh run +exec /opt/tomcat/bin/catalina.sh run