浏览代码

fix(登录及权限模块): 提交优化

gjs 3 年之前
父节点
当前提交
1fcba59860
共有 4 个文件被更改,包括 37 次插入0 次删除
  1. 3 0
      .gitignore
  2. 10 0
      Dockerfile
  3. 1 0
      docker-compose/devops/.env
  4. 23 0
      docker-compose/devops/docker-compose.yml

+ 3 - 0
.gitignore

@@ -30,3 +30,6 @@ HELP.md
 /temp/
 /power/
 /src/main/resources/static/
+
+docker-compose/devops/dockerfile
+docker-compose/devops/lib

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+FROM openjdk:8-jdk-alpine
+WORKDIR /home/file-collect
+ARG JAR_FILE
+COPY ${JAR_FILE} app.jar
+COPY config/ config/
+COPY excel-template/ excel-template/
+COPY mapper/ mapper/
+COPY static/ static/
+
+ENTRYPOINT ["java", "-jar","-Dspring.config.location=./config/","app.jar"]

+ 1 - 0
docker-compose/devops/.env

@@ -0,0 +1 @@
+VERSION=1.0.0-SNAPSHOT

+ 23 - 0
docker-compose/devops/docker-compose.yml

@@ -0,0 +1,23 @@
+version: '3.3'
+services:
+
+  file-collect:
+    build:
+      context: dockerfile/file_collect
+      args:
+          JAR_FILE: file-collect-${VERSION}.jar
+    image: "localhost/file-collect:1.0.0-SNAPSHOT"
+    container_name: "file_collect"
+    restart: always
+    ports:
+      - 18050:18050
+    volumes:
+#      - E:\WorkSpace\doc-manager-master\docker-compose\devops\lib:/home/file-collect/lib
+#      - E:\WorkSpace\doc-manager-master\temp:/home/file-collect/temp
+#      - E:\WorkSpace\doc-manager-master\file:/home/file-collect/file
+#      - E:\WorkSpace\doc-manager-master\upload:/home/file-collect/upload
+      - /data/jianzhi/lib:/home/file-collect/lib
+      - /data/jianzhi/file-collect/temp:/home/file-collect/temp
+      - /data/jianzhi/file-collect/file:/home/file-collect/file
+      - /data/jianzhi/file-collect/upload:/home/file-collect/upload
+