The ASP.NET Core solution (mws.api/mws.application/mws.domain/ mws.infrastructure) existed only as untracked working files. Adding it to version control, plus a .gitignore for build output and local tooling directories, so the CQRS/mediator refactor plan has a real git history to branch and diff against.
19 lines
522 B
Docker
19 lines
522 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /app
|
|
|
|
COPY Mws.slnx ./
|
|
COPY Mws.Domain/*.csproj Mws.Domain/
|
|
COPY Mws.Application/*.csproj Mws.Application/
|
|
COPY Mws.Infrastructure/*.csproj Mws.Infrastructure/
|
|
COPY Mws.Api/*.csproj Mws.Api/
|
|
RUN dotnet restore
|
|
|
|
COPY app/ app/
|
|
RUN dotnet publish app/Mws.Api -c Release -o /app/publish
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
|
WORKDIR /app
|
|
COPY --from=build /app/publish .
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["dotnet", "Mws.Api.dll"] |