# Switch to a non-root user RUN useradd --system --home /home/message-queue --create-home --shell /sbin/nologin messagequeue USER messagequeue WORKDIR /home/message-queue # Copy the Message Queue binary and relevant license COPY --from=builder --chown=messagequeue /serai/bin/serai-message-queue /bin COPY --from=builder --chown=messagequeue /serai/AGPL-3.0 . # Run message-queue EXPOSE 2287 CMD ["serai-message-queue"]