mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 09:27:36 +00:00
15 lines
415 B
Text
15 lines
415 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 processor
|
|
USER processor
|
|
|
|
WORKDIR /home/processor
|
|
|
|
# Copy the Processor binary and relevant license
|
|
COPY --from=builder --chown=processor /serai/bin/serai-processor /bin/
|
|
COPY --from=builder --chown=processor /serai/AGPL-3.0 .
|
|
|
|
# Run processor
|
|
CMD ["serai-processor"]
|