Compare commits
2 Commits
main
...
5f53207050
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f53207050 | |||
| 02dfdd2a07 |
@@ -4,12 +4,12 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Projektdateien kopieren und Abhängigkeiten wiederherstellen
|
# Projektdateien kopieren und Abhängigkeiten wiederherstellen
|
||||||
COPY *.sln .
|
COPY *.sln .
|
||||||
COPY watcher-monitoring/*.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-monitoring/. ./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"]
|
||||||
Reference in New Issue
Block a user