Files
myAi/web/Dockerfile
T
claude 25127f92a3
Build and Push Docker Images / build (push) Failing after 16s
Changes
2026-05-08 15:15:45 +03:00

18 lines
525 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src/web
COPY web/web.csproj ./
RUN dotnet restore web.csproj
# Copy only the web project files to avoid bringing other projects into the build context
COPY . ./
RUN dotnet publish web.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
EXPOSE 8080
ENV ASPNETCORE_URLS=http://0.0.0.0:8080
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "web.dll"]