修改file文件

master
ZhangXushuo 2023-10-31 18:24:56 +08:00
parent f746f307c8
commit b30daa51fe
3 changed files with 21 additions and 2 deletions

19
Dockerfile 100644
View File

@ -0,0 +1,19 @@
# 起始镜像点
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
# 暴露的端口位置
EXPOSE 9300/tcp
# 挂载的目录位置
VOLUME /home/logs/ruoyi-file
# 构建复制外部文件到dcoker内部
COPY /target/february-file-server.jar /home/app.jar
# 工作目录 exec -it 进来就是默认这个目录
WORKDIR /home
# 指定东八区
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 启动java程序
CMD ["java","-Dfile.encoding=UTF-8", "-jar", "/home/app.jar"]

View File

@ -7,7 +7,7 @@
<groupId>com.february</groupId> <groupId>com.february</groupId>
<artifactId>february-modules</artifactId> <artifactId>february-modules</artifactId>
<version>3.6.3</version> <version>3.6.3</version>
<relativePath>../../pom.xml</relativePath> <relativePath>pom.xml</relativePath>
</parent> </parent>
<artifactId>february-file-server</artifactId> <artifactId>february-file-server</artifactId>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false"> <configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 --> <!-- 日志存放路径 -->
<property name="log.path" value="logs/february-file" /> <property name="log.path" value="./logs/ruoyi-file" />
<!-- 日志输出格式 --> <!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />