KI shit haha
This commit is contained in:
@@ -14,6 +14,10 @@ RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# 2. Laufzeit-Phase: ASP.NET Core Runtime
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
# Build-Argument für Version (wird zur Build-Zeit vom CI/CD gesetzt)
|
||||
ARG VERSION=latest
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
@@ -28,5 +32,8 @@ EXPOSE 5000
|
||||
ENV ASPNETCORE_URLS=http://*:5000
|
||||
ENV ASPNETCORE_ENVIRONMENT=Development
|
||||
|
||||
# Version als Environment Variable setzen
|
||||
ENV WATCHER_VERSION=${VERSION}
|
||||
|
||||
# Anwendung starten
|
||||
ENTRYPOINT ["dotnet", "Watcher.dll"]
|
||||
|
||||
Reference in New Issue
Block a user