# This image ships the published release artifacts, so the image contents are the same files the release workflow exported. # Build it with the extracted Linux x64 Web archive as the context. # docker build -t nemera-web -f src/Nemera.Presentation.Web/Dockerfile.release FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final # Curl is used by the container healthcheck to probe the /health endpoints. RUN apt-get update \ && apt-get install -y --no-install-recommends curl \ && rm -rf /var/lib/apt/lists/* \ && mkdir /logs && chown -R app:app /logs USER app WORKDIR /app COPY --chown=app:app . . # The container branch in Program.cs binds the web client to this port. EXPOSE 5012 ENTRYPOINT ["dotnet", "Nemera.Presentation.Web.dll"]