File tree Expand file tree Collapse file tree 5 files changed +8
-9
lines changed
CSharp-OpenBMCLAPI/Modules Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -366,5 +366,6 @@ FodyWeavers.xsd
366366.env. *
367367.lh
368368
369- # docker 镜像的 working 文件夹
370- /working
369+ # docker 镜像的文件夹
370+ /working
371+ /cache
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ public Config()
7575 this . skipCheck = false ;
7676
7777 this . refreshTokenTime = 1800000 ;
78- this . clusterWorkingDirectory = "./" ;
79- this . clusterFileDirectory = "./" ;
78+ this . clusterWorkingDirectory = "./working " ;
79+ this . clusterFileDirectory = "./cache " ;
8080 this . clusterVersion = "1.10.8" ;
8181
8282 this . HOST = "" ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace CSharpOpenBMCLAPI.Modules.Storage
1414 public class FileStorage : IStorage
1515 {
1616 protected string workingDirectory ;
17- public string CacheDirectory { get => Path . Combine ( workingDirectory , "cache" ) ; }
17+ public string CacheDirectory { get => workingDirectory ; }
1818 private SambaConnection ? connection ;
1919
2020 public FileStorage ( string workingDirectory )
Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
44# 设置工作目录
55WORKDIR /app
66
7- # 复制项目文件到工作目录
8- COPY . .
9-
107# 恢复项目依赖项
118RUN dotnet restore
129
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ services:
55 ports :
66 - 4000:4000
77 volumes :
8- - ./working:/app
8+ - ./working:/app/working
9+ - ./cache:/app/cache
You can’t perform that action at this time.
0 commit comments