fix: extract linux support to docker file

This commit is contained in:
Guillermo Marcel 2025-02-20 15:17:46 -03:00
parent 929fb1f898
commit 3791738c41
3 changed files with 40 additions and 6 deletions

View File

@ -32,5 +32,6 @@ RUN apt-get install -y python3 python3-pip
RUN python3 -m pip install dvr-scan[opencv-headless] --break-system-packages
COPY --link --from=build /app .
COPY CasaBotApp/appsettings.Docker.json ./appsettings.json
ENTRYPOINT ["dotnet", "CasaBotApp.dll"]
#CMD ["/bin/bash"]

View File

@ -0,0 +1,37 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information",
"Quartz": "Information",
"System.Net.Http.HttpClient": "Warning"
}
},
"Telegram":{
"BotToken": "__token__",
"SubscribedChatIds": []
},
"Shinobi": {
"URL": "http://localhost:8080",
"APIKey": "APIKEY",
"GroupId": "Group",
"MonitorId": "Monitor"
},
"AutoScan": {
"Enabled": true,
"RunDry": false,
"At": "07:00",
"FromDayBefore": false,
"From": "01:00",
"To": "05:00",
"MaxAmount": 0,
"MediaFolder": "./media/originals/",
"Scanner": {
"Exe": "dvr-scan",
"ConfigFile": "./dvr-scan.cfg",
"DetectionFolder": "./media/detections/",
"RunDry": false
}
}
}

View File

@ -29,12 +29,8 @@
"MaxAmount": 0,
"MediaFolder": "./media/originals/",
"Scanner": {
"ExeLinux": "dvr-scan",
"ExeWindows": "./dvr-scanner/dvr-scan.exe",
"Exe": "dvr-scan",
"ConfigFileLinux": "./dvr-scan.cfg",
"ConfigFileWindows": "./dvr-scanner/dvr-scan.cfg",
"ConfigFile": "./dvr-scan.cfg",
"Exe": "./dvr-scanner/dvr-scan.exe",
"ConfigFile": "./dvr-scanner/dvr-scan.cfg",
"DetectionFolder": "./media/detections/",
"RunDry": false
}