feat: add Docker deployment for CutList.Web and update CLAUDE.md docs
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>
This commit is contained in:
@@ -1172,7 +1172,7 @@ else
|
||||
<td>
|
||||
@foreach (var item in entry.Bin.Items)
|
||||
{
|
||||
<span class="badge bg-primary me-1 fs-6">
|
||||
<span class="badge me-1 mb-1 fs-6" style="background-color: #6c8ebf; font-weight: 500;">
|
||||
@(string.IsNullOrWhiteSpace(item.Name) ? ArchUnits.FormatFromInches(item.Length) : $"{item.Name} ({ArchUnits.FormatFromInches(item.Length)})")
|
||||
</span>
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user