Adds a Dockerfile and Gitea Actions workflow to build/push the CutList.Web image to the registry on push to master, enabling containerized deployment to forge. Also updates CLAUDE.md to reflect the CutList.Mcp project, REST API surface, and CatalogService, and tweaks the cut-length badge styling in the job editor. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
651 B
Docker
28 lines
651 B
Docker
# Build stage
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
|
|
# Copy solution and project files for restore
|
|
COPY CutList.sln .
|
|
COPY CutList.Web/CutList.Web.csproj CutList.Web/
|
|
COPY CutList.Core/CutList.Core.csproj CutList.Core/
|
|
RUN dotnet restore CutList.Web/CutList.Web.csproj
|
|
|
|
# Copy everything else and build
|
|
COPY . .
|
|
WORKDIR /src/CutList.Web
|
|
RUN dotnet publish -c Release -o /app/publish
|
|
|
|
# Runtime stage
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
EXPOSE 5270
|
|
|
|
ENV ASPNETCORE_URLS=http://+:5270
|
|
ENV ASPNETCORE_ENVIRONMENT=Production
|
|
|
|
ENTRYPOINT ["dotnet", "CutList.Web.dll"]
|