Skip to content

Commit

Permalink
Updates to .NET SDK 8.0 in both dev and normal dockerfiles (#62)
Browse files Browse the repository at this point in the history
* Update Dockerfile to 8.0

* Update Dev Dockerfile SDK to 8.0

* Update Dockerfile to .NET SDK 8.0

* Update Dev Dockerfile .NET SDK 8.0
  • Loading branch information
mandrepont authored Aug 14, 2024
1 parent 6ad1bda commit 06f525b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0
FROM mcr.microsoft.com/dotnet/sdk:8.0

ENV PATH="/root/.dotnet/tools:${PATH}"
RUN dotnet tool install -g NetDaemon.HassModel.CodeGen
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
Expand All @@ -10,7 +10,7 @@ COPY . ./
RUN dotnet publish -c Release -o out ./NetDaemonApps.csproj

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "NetDaemonApps.dll"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0
FROM mcr.microsoft.com/dotnet/sdk:8.0

ENV PATH="/root/.dotnet/tools:${PATH}"
RUN dotnet tool install -g NetDaemon.HassModel.CodeGen
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
Expand All @@ -10,7 +10,7 @@ COPY . ./
RUN dotnet publish -c Release -o out ./NetDaemonAppsSrc.csproj

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "NetDaemonAppsSrc.dll"]

0 comments on commit 06f525b

Please sign in to comment.