fix: update config
This commit is contained in:
+6
-6
@@ -2,18 +2,18 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY mws.backend.dotnet.sln ./
|
||||
COPY mws.domain/*.csproj mws.domain/
|
||||
COPY mws.application/*.csproj mws.application/
|
||||
COPY mws.infrastructure/*.csproj mws.infrastructure/
|
||||
COPY mws.api/*.csproj mws.api/
|
||||
COPY domain/*.csproj domain/
|
||||
COPY application/*.csproj application/
|
||||
COPY infrastructure/*.csproj infrastructure/
|
||||
COPY api/*.csproj api/
|
||||
RUN dotnet restore
|
||||
|
||||
COPY . .
|
||||
RUN dotnet publish mws.api -c Release -o /app/publish
|
||||
RUN dotnet publish 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"]
|
||||
ENTRYPOINT ["dotnet", "api.dll"]
|
||||
Reference in New Issue
Block a user