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