Files
Nemera/src/Nemera.Presentation.Web/Dockerfile.release
T

20 lines
787 B
Docker

# 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 <extracted-Nemera-version-linux-x64-web>
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"]