Skip to content

Commit

Permalink
Update Dockerfile to .Net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ValMati committed Nov 26, 2023
1 parent 9d8755a commit 227f422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0.403 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0.100 AS build-env

WORKDIR /src

Expand All @@ -11,7 +11,7 @@ COPY . .
RUN dotnet publish ./src/ValMati.StockBot/ValMati.StockBot.csproj -c Release -o /publish --no-restore --runtime linux-x64 --no-self-contained /p:DebugType=None /p:Platform=x64

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0.13
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0
WORKDIR /app

COPY --from=build-env /publish .
Expand Down

0 comments on commit 227f422

Please sign in to comment.