Skip to content

Commit

Permalink
Updated docketfile to specify .net 7
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicgraphics committed Apr 2, 2024
1 parent a28d0ec commit ef107cc
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:5.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /app

# Restore the project
Expand All @@ -9,7 +9,7 @@ RUN dotnet restore
RUN dotnet publish -c Release -p:PublishReadyToRun=true -r linux-x64 -o out

# Run the application
FROM mcr.microsoft.com/dotnet/runtime:5.0
FROM mcr.microsoft.com/dotnet/runtime:7.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "/app/BeatTogether.Status.Api.dll"]

0 comments on commit ef107cc

Please sign in to comment.