From 18be91f4b8f08adab127508ed1b7663581921f94 Mon Sep 17 00:00:00 2001 From: kaede10 Date: Mon, 15 Jul 2024 18:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Eroot=E7=94=A8=E6=88=B7=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DockerFile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DockerFile b/DockerFile index 211fb9c..dc977a9 100644 --- a/DockerFile +++ b/DockerFile @@ -3,6 +3,7 @@ FROM openjdk:8-jdk RUN mkdir -p /var/lib/om-kafka WORKDIR /var/lib/om-kafka +COPY . /var/lib/om-kafka # Install basic software support RUN apt-get update && \ @@ -15,11 +16,10 @@ ENV MAVEN_HOEM=/var/lib/om-kafka/apache-maven-3.8.8 ENV PATH=$MAVEN_HOEM/bin:$PATH -MAINTAINER zhongjun +RUN mvn clean install assembly:single -Dmaven.test.skip && \ + mv ./target/omkafka-1.0-SNAPSHOT.jar ./om-kafka.jar -RUN git clone https://gitee.com/opensourceway/om-kafka.git && \ - cd om-kafka && \ - mvn clean install assembly:single -Dmaven.test.skip && \ - mv ./target/omkafka-1.0-SNAPSHOT.jar ../om-kafka.jar +RUN useradd -u 1000 omkafka -s /bin/bash -m -U +USER omkafka CMD java -jar om-kafka.jar