parent
608e9a7f9e
commit
ed619cdc17
18 changed files with 47 additions and 46 deletions
10
Dockerfile
10
Dockerfile
|
@ -7,17 +7,17 @@ EXPOSE 8081
|
|||
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:84fd557bebc64015e731aca1085b92c7619e49bdbe247e57392a43d92276f617 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["myhm-commission.csproj", "./"]
|
||||
RUN dotnet restore "myhm-commission.csproj"
|
||||
COPY ["LookingGlass.csproj", "./"]
|
||||
RUN dotnet restore "LookingGlass.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/"
|
||||
RUN dotnet build "myhm-commission.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
RUN dotnet build "LookingGlass.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "myhm-commission.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
RUN dotnet publish "LookingGlass.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "myhm-commission.dll"]
|
||||
ENTRYPOINT ["dotnet", "LookingGlass.dll"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue