Add project files.
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0-bookworm-slim AS build
|
||||
WORKDIR /src
|
||||
|
||||
COPY ["LiteCharmsMessaging/LiteCharmsMessaging.csproj", "LiteCharmsMessaging/"]
|
||||
RUN dotnet restore "LiteCharmsMessaging/LiteCharmsMessaging.csproj"
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR "/src/LiteCharmsMessaging"
|
||||
RUN dotnet build "LiteCharmsMessaging.csproj" -c Release -o /app/build
|
||||
RUN dotnet publish "LiteCharmsMessaging.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0-bookworm-slim AS final
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["dotnet", "LiteCharmsMessaging.dll"]
|
||||
Reference in New Issue
Block a user