anchor.diff:  LABEL org.opencontainers.image.vendor="The Matrix.org Foundation C.I.C."
   RUN addgroup dendrite && adduser dendrite -G dendrite -u 1337 -D
   USER dendrite
  -WORKDIR /home/dendrite
   
   #
   # Builds the polylith image and only contains the polylith binary
  
positive.code: COPY --from=build /out/generate-config /usr/bin/generate-config
  COPY --from=build /out/generate-keys /usr/bin/generate-keys
  COPY --from=build /out/dendrite-monolith-server /usr/bin/dendrite-monolith-server
  
  ENTRYPOINT ["/usr/bin/dendrite-monolith-server"]
  EXPOSE 8008 8448
  
negative.code: CMD /usr/bin/generate-keys --server $SERVER_NAME --tls-cert server.crt --tls-key server.key --tls-authority-cert /ca/ca.crt --tls-authority-key /ca/ca.key && \
      /usr/bin/generate-config -server $SERVER_NAME --ci > dendrite.yaml && \
      cp /ca/ca.crt /usr/local/share/ca-certificates/ && update-ca-certificates && \
      /usr/bin/dendrite-monolith-server --really-enable-open-registration --tls-cert server.crt --tls-key server.key --config dendrite.yaml -api=${API:-0}
  