mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
15 lines
429 B
Text
15 lines
429 B
Text
# Install ca-certificates
|
|
RUN apt install -y ca-certificates
|
|
|
|
# Switch to a non-root user
|
|
RUN useradd --system --create-home --shell /sbin/nologin coordinator
|
|
USER coordinator
|
|
|
|
WORKDIR /home/coordinator
|
|
|
|
# Copy the Coordinator binary and relevant license
|
|
COPY --from=builder --chown=processor /serai/bin/serai-coordinator /bin/
|
|
COPY --from=builder --chown=processor /serai/AGPL-3.0 .
|
|
|
|
# Run coordinator
|
|
CMD ["serai-coordinator"]
|