Browse Source

dockerfile

wangliang 2 months ago
parent
commit
392308830a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      java/teachcloud/Dockerfile

+ 3 - 1
java/teachcloud/Dockerfile

@@ -8,6 +8,8 @@ ARG APPLICATION_NAME
 RUN echo "APP_NAME is: $APP_NAME"
 RUN echo "APP_NAME is: $APP_NAME"
 RUN echo "APPLICATION_NAME is: $APPLICATION_NAME"
 RUN echo "APPLICATION_NAME is: $APPLICATION_NAME"
 COPY ./$APP_NAME /opt/app.jar
 COPY ./$APP_NAME /opt/app.jar
-COPY ./$APPLICATION_NAME /opt/application.properties
+COPY ./application-dev.properties /opt/application-dev.properties
+COPY ./application-test.properties /opt/application-test.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"]