Docker Changes
This commit is contained in:
@@ -13,10 +13,16 @@ WORKDIR /app/Watcher
|
||||
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# 2. Laufzeit-Phase: ASP.NET Core Runtime
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
# Stelle sicher, dass Verzeichnisse existieren
|
||||
RUN mkdir -p /app/persistence /app/wwwroot/downloads/sqlite
|
||||
|
||||
# Volumes
|
||||
VOLUME ["/app/persistence", "/app/wwwroot/downloads/sqlite"]
|
||||
|
||||
# Exponiere Port 80 und 443 (HTTP + HTTPS)
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
12
docker-compose.yaml
Normal file
12
docker-compose.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
watcher:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: watcher-lokal:development
|
||||
container_name: watcher
|
||||
ports:
|
||||
- "5000:8080"
|
||||
volumes:
|
||||
- ./data:/app/persistence
|
||||
- ./dumps:/app/wwwroot/downloads/sqlite
|
Reference in New Issue
Block a user