From e89b4af82106a33308db242d273d6890a021c4b2 Mon Sep 17 00:00:00 2001 From: jay <75509151@qq.com> Date: Tue, 8 Aug 2023 11:07:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20docker=E9=95=9C=E5=83=8F=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index b41f8bcf..79742caa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM openjdk:11-jre-slim +RUN apt update && apt install -y libfreetype6 fontconfig WORKDIR /app ADD iot-starter/target/iot-starter-0.4.5-SNAPSHOT.jar /app/app.jar ADD data/init /app/data/init From 841f6a82e4d7ee04f5b52a0d1a3130811b3c2cb2 Mon Sep 17 00:00:00 2001 From: jay <75509151@qq.com> Date: Tue, 8 Aug 2023 11:09:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update:=20docker=E9=95=9C=E5=83=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 79742caa..05bf1ca6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ FROM openjdk:11-jre-slim RUN apt update && apt install -y libfreetype6 fontconfig WORKDIR /app -ADD iot-starter/target/iot-starter-0.4.5-SNAPSHOT.jar /app/app.jar ADD data/init /app/data/init -ADD data/components /app/data/components ADD data/converters /app/data/converters -EXPOSE 8086 -ENTRYPOINT ["java", "-classpath", ".:lib/*","cc.iotkit.Application"] +ADD data/components /app/data/components +ADD iot-starter/target/iot-starter-0.4.5-SNAPSHOT.jar /app/app.jar +