Commit 52fcc671 authored by hongguangwu's avatar hongguangwu

MVP1.7.12-解决社保打包问题——先还原

parent 58fd1e88
......@@ -9,14 +9,12 @@ ARG JAR_FILE=target/yifu-social-biz.jar
COPY ${JAR_FILE} app.jar
## 解决使用excel工具转png docker乱码没有宋体
#RUN set -xe && apk --no-cache add fontconfig
#COPY simsun.ttc /usr/share/fonts/
# 使用缓存安装 fontconfig hgw 20250625
RUN --mount=type=cache,target=/var/cache/apk set -xe && apk --no-cache add fontconfig
# 添加宋体(仅在 simsun.ttc 变更时重新复制)
#RUN --mount=type=cache,target=/var/cache/apk set -xe && apk --no-cache add fontconfig
RUN set -xe && apk --no-cache add fontconfig
COPY simsun.ttc /usr/share/fonts/
##end
EXPOSE 5002
......
......@@ -126,87 +126,30 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.40.2</version>
<version>1.1.0</version>
<configuration>
<!-- 认证配置 -->
<authConfig>
<settings>
<serverId>docker-hub</serverId>
</settings>
</authConfig>
<!-- 镜像配置 -->
<images>
<image>
<!--指定生成的镜像名-->
<name>${my.hub.host}/${map.group.name}/${project.artifactId}:${project.version}</name>
<!-- 构建配置 -->
<build>
<!-- 保持与原目录一致 -->
<dockerFileDir>${project.basedir}/</dockerFileDir>
<!-- 等效于原resources配置 -->
<assembly>
<targetDir>/</targetDir>
<descriptorRef>artifact</descriptorRef>
<inline>
<fileSets>
<fileSet>
<!--jar 包所在的路径 此处配置的 即对应 target 目录-->
<directory>${project.build.directory}</directory>
<includes>
<!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
<include>${project.build.finalName}.jar</include>
</includes>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</inline>
</assembly>
<!-- 强制覆盖标签 -->
<tags>
<tag>${project.version}</tag>
</tags>
</build>
<!-- 推送配置 -->
<push>
<enabled>true</enabled>
</push>
</image>
</images>
<!-- 可选:保留原Docker主机配置 -->
<!-- <dockerHost>http://172.16.66.232:2375</dockerHost> -->
<serverId>docker-hub</serverId>
<!--指定生成的镜像名-->
<imageName>${my.hub.host}/${map.group.name}/${project.artifactId}:${project.version}</imageName>
<dockerDirectory>${project.basedir}/</dockerDirectory>
<!--指定远程 docker api地址-->
<!--<dockerHost>http://172.16.66.232:2375</dockerHost>-->
<!-- 这里是复制 jar 包到 docker 容器指定目录配置-->
<resources>
<resource>
<targetPath>/</targetPath>
<!--jar 包所在的路径 此处配置的 即对应 target 目录-->
<directory>${project.build.directory}</directory>
<!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<forceTags>true</forceTags>
</configuration>
<!-- 绑定到Maven生命周期 -->
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>push-image</id>
<phase>deploy</phase>
<goals>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment