diff --git a/Dockerfile b/Dockerfile index 0d216e7..e8a55f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ -FROM registry.ap-northeast-1.aliyuncs.com/southwave/jdk17-template:latest +# FROM registry.ap-northeast-1.aliyuncs.com/southwave/jdk17-template:latest +FROM amazoncorretto:17-alpine +# 安装 fontconfig 和 DejaVu 字体 (这是一个通用且免费的字体包) +RUN apk --no-cache add fontconfig ttf-dejavu + WORKDIR /app COPY target/data-center-sender.jar app.jar EXPOSE 8201 diff --git a/pom.xml b/pom.xml index c64717c..424c7cf 100644 --- a/pom.xml +++ b/pom.xml @@ -502,7 +502,28 @@ - ${aws.ecr.registry}/aeon-prod/${aws.ecr.repositoryProd}:latest + ${aws.ecr.registry}/${aws.ecr.repository}:latest + ${aws.ecr.registry} + + ${project.basedir}/Dockerfile + + + + + + + + io.fabric8 + docker-maven-plugin + 0.38.1 + + + AKIAQNYBBSGDVT3VF4ON + DEhPMTHAIsKK7L2klURQrmMe3r2Tqgbaa6z2FYQu + + + + ${aws.ecr.registryTest}/aeon/${aws.ecr.repository}:latest ${aws.ecr.registry} ${project.basedir}/Dockerfile @@ -511,27 +532,6 @@ - - - - - - - - - - - - - - - - - - - - -