Skip to content

Commit

Permalink
fix: use ASP.NET Core runtime for Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisaAkiron committed May 16, 2024
1 parent f3e5d47 commit a4aa1dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ WORKDIR /build

RUN dotnet publish -c Release -o ./app

FROM mcr.microsoft.com/dotnet/runtime:8.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0

COPY --from=build /build/app /app

WORKDIR /app

ENV ASPNETCORE_URLS=http://+:5000

EXPOSE 5000

ENTRYPOINT ["dotnet", "NibiruConnector.dll"]

0 comments on commit a4aa1dc

Please sign in to comment.