You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2022/08/03 12:30:58 UTC
[iotdb-web-workbench] 24/29: Adding builder for Maven to run properly
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb-web-workbench.git
commit 08ab290d89f6fd426428c38f8c16a0af5e6e7059
Author: Markus Schmidgall <ma...@googlemail.com>
AuthorDate: Tue Sep 21 10:53:25 2021 +0200
Adding builder for Maven to run properly
---
backend/Dockerfile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 10b3078..62723a4 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -17,7 +17,7 @@
# under the License.
#
-FROM hub.segma.tech/library/java:8-jre-centos7-apollo
+FROM maven:3.8.2-amazoncorretto-8 as builder
WORKDIR /app
@@ -25,6 +25,12 @@ COPY . .
RUN mvn package
+
+
+FROM hub.segma.tech/library/java:8-jre-centos7-apollo
+
+COPY --from=builder /app/target/workbench-1.0.0.jar /app/workbench-1.0.0.jar
+
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app/workbench-1.0.0.jar"]