mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 01:17:36 +00:00
14 lines
423 B
Text
14 lines
423 B
Text
|
# 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"]
|