Files
CutList/CutList.Web/Dockerfile
T
ajandClaude Sonnet 5 7574476d7f 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>
2026-07-31 18:50:06 -04:00

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"]