Compare commits
1 Commits
developmen
...
02dfdd2a07
| Author | SHA1 | Date | |
|---|---|---|---|
| 02dfdd2a07 |
@@ -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"]
|
||||
Reference in New Issue
Block a user