From b2d310dc4b5768de165202dca0587548d4cf8c59 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" <123456> Date: Mon, 29 May 2023 20:37:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0dockerFile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blade-service/logpm-basicdata/{src/main => }/Dockerfile | 3 ++- blade-service/logpm-old-project/Dockerfile | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename blade-service/logpm-basicdata/{src/main => }/Dockerfile (77%) diff --git a/blade-service/logpm-basicdata/src/main/Dockerfile b/blade-service/logpm-basicdata/Dockerfile similarity index 77% rename from blade-service/logpm-basicdata/src/main/Dockerfile rename to blade-service/logpm-basicdata/Dockerfile index 83ce40cf5..36935915d 100644 --- a/blade-service/logpm-basicdata/src/main/Dockerfile +++ b/blade-service/logpm-basicdata/Dockerfile @@ -2,7 +2,7 @@ FROM bladex/alpine-java:openjdk8-openj9_cn_slim MAINTAINER h5u@163.com -RUN mkdir -p /logpm/basic +RUN mkdir -p /logpm/basicdata WORKDIR /logpm/basicdata @@ -11,3 +11,4 @@ EXPOSE 8400 ADD ./target/logpm-basicdata.jar ./app.jar ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-old-project/Dockerfile b/blade-service/logpm-old-project/Dockerfile index 188306ced..1c523e654 100644 --- a/blade-service/logpm-old-project/Dockerfile +++ b/blade-service/logpm-old-project/Dockerfile @@ -2,13 +2,13 @@ FROM bladex/alpine-java:openjdk8-openj9_cn_slim MAINTAINER h5u@163.com -RUN mkdir -p /logpm/factory +RUN mkdir -p /logpm/old-project -WORKDIR /logpm/factory +WORKDIR /logpm/old-project EXPOSE 8500 -ADD ./target/logpm-factory.jar ./app.jar +ADD ./target/logpm-old-project.jar ./app.jar ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] CMD ["--spring.profiles.active=test"]