This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new e84b665d6c [Improve][dist] Reduce Docker image size (#8641)
e84b665d6c is described below

commit e84b665d6c692194d8195775143994b78eb11f03
Author: quicklyfast <69248473+quicklyf...@users.noreply.github.com>
AuthorDate: Thu Feb 13 10:55:52 2025 +0800

    [Improve][dist] Reduce Docker image size (#8641)
---
 seatunnel-dist/src/main/docker/Dockerfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/seatunnel-dist/src/main/docker/Dockerfile 
b/seatunnel-dist/src/main/docker/Dockerfile
index 0948372260..cb2aa9035d 100644
--- a/seatunnel-dist/src/main/docker/Dockerfile
+++ b/seatunnel-dist/src/main/docker/Dockerfile
@@ -1,9 +1,8 @@
-FROM openjdk:8
+FROM openjdk:8 as builder
 
 ARG VERSION
 
 COPY ./target/apache-seatunnel-${VERSION}-bin.tar.gz /opt/
-
 RUN cd /opt && \
     tar -zxvf apache-seatunnel-${VERSION}-bin.tar.gz && \
     mv apache-seatunnel-${VERSION} seatunnel && \
@@ -13,4 +12,6 @@ RUN cd /opt && \
     sed -i 
's/rootLogger.appenderRef.file.ref/#rootLogger.appenderRef.file.ref/' 
seatunnel/config/log4j2.properties && \
     cp seatunnel/config/hazelcast-master.yaml 
seatunnel/config/hazelcast-worker.yaml
 
+FROM openjdk:8
+COPY --from=builder /opt/seatunnel /opt/seatunnel
 WORKDIR /opt/seatunnel

Reply via email to