|
@@ -4,12 +4,9 @@ MAINTAINER wangliang@qmth.com.cn
|
|
|
|
|
|
WORKDIR /opt
|
|
WORKDIR /opt
|
|
ARG APP_NAME
|
|
ARG APP_NAME
|
|
-ARG APPLICATION_NAME
|
|
|
|
RUN echo "APP_NAME is: $APP_NAME"
|
|
RUN echo "APP_NAME is: $APP_NAME"
|
|
-RUN echo "APPLICATION_NAME is: $APPLICATION_NAME"
|
|
|
|
COPY ./$APP_NAME /opt/app.jar
|
|
COPY ./$APP_NAME /opt/app.jar
|
|
COPY ./application-dev.properties /opt/application-dev.properties
|
|
COPY ./application-dev.properties /opt/application-dev.properties
|
|
COPY ./application-test.properties /opt/application-test.properties
|
|
COPY ./application-test.properties /opt/application-test.properties
|
|
COPY ./application-prod.properties /opt/application-prod.properties
|
|
COPY ./application-prod.properties /opt/application-prod.properties
|
|
-
|
|
|
|
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS1 $JAVA_OPTS3 -jar /opt/app.jar $JAVA_OPTS2"]
|
|
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS1 $JAVA_OPTS3 -jar /opt/app.jar $JAVA_OPTS2"]
|