Files
Jim BassoandClaude Opus 4.8 7dee999759
Build & Push Docker image / test (push) Failing after 1m33s
Build & Push Docker image / docker (push) Has been skipped
Initial build: WishNinja self-hosted gift wishlist manager
ASP.NET Core Blazor (.NET 10) + EF Core/SQLite + Identity. Features:
- Wishlists & items with local image storage (upload, clipboard paste,
  or URL fetched and stored locally)
- Owner-hidden claims (enforced at the query layer) to preserve surprises
- Admin-invite-only onboarding with email-based password resets
- All state under /data; ships as a single Docker image

Includes Dockerfile, docker-compose, Gitea Actions CI (test + push image),
Unraid template, and xUnit tests (claim privacy, invite lifecycle, image validation).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-10 15:57:42 -05:00

28 lines
866 B
Docker

# ---- Build stage: compile and publish with the full SDK ----
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
# Restore first (cached unless the project file changes).
COPY src/WishNinja/WishNinja.csproj src/WishNinja/
RUN dotnet restore src/WishNinja/WishNinja.csproj
# Build + publish.
COPY src/ src/
RUN dotnet publish src/WishNinja/WishNinja.csproj -c Release -o /app /p:UseAppHost=false
# ---- Runtime stage: ship only the ASP.NET Core runtime ----
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
# Listen on 8080 (no TLS — terminate TLS at your reverse proxy) and keep all
# mutable state under /data so a single volume persists db, uploads and keys.
ENV ASPNETCORE_HTTP_PORTS=8080 \
WishNinja__DataPath=/data
RUN mkdir -p /data
VOLUME /data
EXPOSE 8080
COPY --from=build /app .
ENTRYPOINT ["dotnet", "WishNinja.dll"]