diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2a2b1aa --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/february-file-server/pom.xml b/february-file-server/pom.xml index 5a7edd0..d2a6df2 100644 --- a/february-file-server/pom.xml +++ b/february-file-server/pom.xml @@ -7,7 +7,7 @@ com.february february-modules 3.6.3 - ../../pom.xml + pom.xml february-file-server diff --git a/february-file-server/src/main/resources/logback.xml b/february-file-server/src/main/resources/logback.xml index ceebc39..191e48e 100644 --- a/february-file-server/src/main/resources/logback.xml +++ b/february-file-server/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - +