############################################### # Build stage # ############################################### ARG BUILD_TAG=latest FROM --platform=$BUILDPLATFORM build:${BUILD_TAG} AS bitwarden-build ############################################### # App stage # ############################################### FROM mcr.microsoft.com/dotnet/aspnet:6.0 ARG TARGETPLATFORM LABEL com.bitwarden.product="bitwarden" com.bitwarden.project="setup" RUN apt-get update \ && apt-get install -y --no-install-recommends \ openssl \ gosu \ && rm -rf /var/lib/apt/lists/* # Copy app from the build stage WORKDIR /app COPY --from=bitwarden-build /app/Setup ./ COPY entrypoint.sh / RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]