feat: docker调整

This commit is contained in:
caiyuchao
2025-04-15 17:42:20 +08:00
parent 9022b337f1
commit 8fd2325d46
4 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ services:
# 使用前面创建的Dockerfile构建的镜像
build: .
# 指定容器名(可选)
container_name: wfc-license-serve
container_name: wfc-license-server
# 指定端口映射例如将容器的8080端口映射到主机的8080端口
ports:
- "8070:8070"

View File

@@ -10,6 +10,6 @@ RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY target/wfc-license-serve-1.0.0.jar /opt/wfc/wfc-license-serve.jar
COPY target/wfc-license-server-1.0.0.jar /opt/wfc/wfc-license-server.jar
# 启动licese-serve服务
ENTRYPOINT ["java","-jar","wfc-license-serve.jar"]
ENTRYPOINT ["java","-jar","wfc-license-server.jar"]

View File

@@ -10,9 +10,9 @@
</parent>
<groupId>com.modules</groupId>
<artifactId>wfc-license-serve</artifactId>
<artifactId>wfc-license-server</artifactId>
<version>1.0.0</version>
<name>wfc-license-serve</name>
<name>wfc-license-server</name>
<description>license serve project</description>
<properties>

View File

@@ -53,7 +53,7 @@ public class CustomKeyStoreParam extends AbstractKeyStoreParam {
@Override
public InputStream getStream() throws IOException {
// final InputStream in = new FileInputStream(new File(storePath));
InputStream in = this.getClass().getClassLoader().getResourceAsStream(storePath);
final InputStream in = this.getClass().getClassLoader().getResourceAsStream(storePath);
if (null == in) {
throw new FileNotFoundException(storePath);
}