###### generated-by: Ablera.Serdica.CiJobsBuilder 1.0.0 ######
FROM mirrors.ablera.dev/docker-mirror/dotnet/sdk:9.0-alpine AS build
WORKDIR /
COPY . .
WORKDIR /src/Serdica/Ablera.Serdica.Authority/__Plugins/Ablera.Serdica.Authority.Plugin.Ldap
RUN dotnet restore "Ablera.Serdica.Authority.Plugin.Ldap.csproj"
RUN dotnet publish "Ablera.Serdica.Authority.Plugin.Ldap.csproj" -c Release -o /app/PluginBinaries
RUN apk add --no-cache zip && \
    cd / && zip -r /ablera-serdica-authority-plugin-ldap.zip app

FROM alpine:3.19 AS final
COPY --from=build /ablera-serdica-authority-plugin-ldap.zip /
LABEL org.opencontainers.image.description="Plugin artefacts only"
