Path: redb/redb.Templates/templates/redb-app/RedbApp.Web/Dockerfile Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-app/RedbApp.Web/Dockerfile ---- # The client: published once, served by nginx. Build from the solution folder: # docker build -f RedbApp.Web/Dockerfile -t redbapp-web . FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build WORKDIR /src COPY Directory.Build.props . COPY RedbApp.Models/RedbApp.Models.csproj RedbApp.Models/ COPY RedbApp.Web/RedbApp.Web.csproj RedbApp.Web/ RUN dotnet restore RedbApp.Web/RedbApp.Web.csproj COPY . . RUN dotnet publish RedbApp.Web/RedbApp.Web.csproj -c Release -o /publish --no-restore FROM nginx:alpine COPY --from=build /publish/wwwroot /usr/share/nginx/html COPY RedbApp.Web/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80