Files
mws.backend.dotnet/Dockerfile
T

19 lines
486 B
Docker
Raw Normal View History

2026-08-13 23:10:22 +07:00
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
2026-08-19 23:25:08 +07:00
COPY mws.backend.dotnet.sln ./
2026-08-24 08:08:14 +07:00
COPY domain/*.csproj domain/
COPY application/*.csproj application/
COPY infrastructure/*.csproj infrastructure/
COPY api/*.csproj api/
2026-08-13 23:10:22 +07:00
RUN dotnet restore
2026-08-19 23:25:08 +07:00
COPY . .
2026-08-24 08:08:14 +07:00
RUN dotnet publish api -c Release -o /app/publish
2026-08-13 23:10:22 +07:00
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080
2026-08-24 08:08:14 +07:00
ENTRYPOINT ["dotnet", "api.dll"]