Dockerfile Fix
Some checks failed
Gitea CI/CD / dotnet-build-and-test (push) Failing after 25s
Gitea CI/CD / Set Tag Name (push) Has been skipped
Gitea CI/CD / docker-build-and-push (push) Has been skipped
Gitea CI/CD / Create Tag (push) Has been skipped

This commit is contained in:
2026-01-07 13:15:10 +01:00
parent 24538d8030
commit 02dfdd2a07

View File

@@ -4,12 +4,12 @@ WORKDIR /app
# Projektdateien kopieren und Abhängigkeiten wiederherstellen # Projektdateien kopieren und Abhängigkeiten wiederherstellen
COPY *.sln . COPY *.sln .
COPY Watcher/*.csproj ./Watcher/ COPY watcher-monitoring/*.csproj ./watcher-monitoring/
RUN dotnet restore RUN dotnet restore
# Restliche Dateien kopieren und Build ausführen # Restliche Dateien kopieren und Build ausführen
COPY Watcher/. ./Watcher/ COPY watcher-monitoring/. ./watcher-monitoring/
WORKDIR /app/Watcher WORKDIR /app/watcher-monitoring
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
# 2. Laufzeit-Phase: ASP.NET Core Runtime # 2. Laufzeit-Phase: ASP.NET Core Runtime
@@ -43,6 +43,7 @@ USER watcher
# Expose Port 5000 # Expose Port 5000
EXPOSE 5000 EXPOSE 5000
ENV ASPNETCORE_URLS=http://*:5000 ENV ASPNETCORE_URLS=http://*:5000
ENV ASPNETCORE_ENVIRONMENT=Production ENV ASPNETCORE_ENVIRONMENT=Production
@@ -50,4 +51,4 @@ ENV ASPNETCORE_ENVIRONMENT=Production
ENV WATCHER_VERSION=${VERSION} ENV WATCHER_VERSION=${VERSION}
# Anwendung starten # Anwendung starten
ENTRYPOINT ["dotnet", "Watcher.dll"] ENTRYPOINT ["dotnet", "watcher-monitoring.dll"]