FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build WORKDIR /source COPY . . RUN dotnet restore RUN dotnet publish --property:OutputPath=/app FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine EXPOSE 8080 WORKDIR /app COPY --from=build /app . USER $APP_UID ENTRYPOINT ["./RhSolutions.Api"]