Renames project paths from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:34:43 +02:00
1 parent ce6fddb4c9
commit 0f659a4877
6450 files changed

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
# This stage is used when running from VS in fast mode (Default for Debug configuration).
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
# Curl is used by the container healthcheck to probe the /health endpoints.
# FFmpeg is used by the API server to remux or transcode audio the browser cannot play directly.
# The package comes from the base image distribution and is not version-pinned, so the encoder set can change with a base image rebuild.
# The API startup probe verifies the encoders the normalization catalog uses and reports a missing one at startup. Pin the base image digest
# or the package version when a fully reproducible toolchain is required.
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ffmpeg \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /app /logs && chown -R app:app /app /logs
USER app
WORKDIR /app
EXPOSE 5214
# ==== Stage 1: Build stage
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
# Restore NuGet packages (keeping this section separate from the rest of the project files allows Docker to cache the restored packages).
COPY ["AssemblyInfo_Shared.cs", "."]
COPY ["Lumina.Presentation.Api/Lumina.Presentation.Api.csproj", "Lumina.Presentation.Api/"]
COPY ["Lumina.Application/Lumina.Application.csproj", "Lumina.Application/"]
COPY ["Lumina.Contracts/Lumina.Contracts.csproj", "Lumina.Contracts/"]
COPY ["Lumina.Domain/Lumina.Domain.csproj", "Lumina.Domain/"]
COPY ["Lumina.Domain.SharedKernel/Lumina.Domain.SharedKernel.csproj", "Lumina.Domain.SharedKernel/"]
COPY ["Lumina.Infrastructure/Lumina.Infrastructure.csproj", "Lumina.Infrastructure/"]
COPY ["Lumina.DataAccess/Lumina.DataAccess.csproj", "Lumina.DataAccess/"]
COPY ["Lumina.Plugins.Contracts/Lumina.Plugins.Contracts.csproj", "Lumina.Plugins.Contracts/"]
RUN dotnet restore "./Lumina.Presentation.Api/Lumina.Presentation.Api.csproj" /p:BaseOutputPath=/app/publish/
# Build the project.
COPY ["Lumina.Presentation.Api/", "Lumina.Presentation.Api/"]
COPY ["Lumina.Application/", "Lumina.Application/"]
COPY ["Lumina.Contracts/", "Lumina.Contracts/"]
COPY ["Lumina.Domain/", "Lumina.Domain/"]
COPY ["Lumina.Infrastructure/", "Lumina.Infrastructure/"]
COPY ["Lumina.DataAccess/", "Lumina.DataAccess/"]
COPY . .
WORKDIR /src/Lumina.Presentation.Api
RUN dotnet build "./Lumina.Presentation.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build /p:BaseOutputPath=/app/publish/
# ==== Stage 2: Publish stage
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Lumina.Presentation.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false /p:BaseOutputPath=/app/publish/
# ==== Stage 3: Run stage
#FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
# The HTTP port is controlled per run mode: launchSettings.json for local development, ASPNETCORE_HTTP_PORTS here for
# Docker, and for a published DLL run directly on a host, ASPNETCORE_URLS (or ASPNETCORE_HTTP_PORTS) must be set.
ENV ASPNETCORE_HTTP_PORTS=5214
EXPOSE 5214
ENTRYPOINT ["dotnet", "Lumina.Presentation.Api.dll"]
# To build this Docker image, run the following command from the root of the project (location of the .slnx solution file):
# docker build --no-cache -t lumina-api -f Lumina.Presentation.Api/Dockerfile .