Skip to content

Commit

Permalink
added full redis config, modified dockerfile to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaus-near committed Oct 17, 2024
1 parent 9737f5a commit 99e8f75
Show file tree
Hide file tree
Showing 2 changed files with 1,317 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.multichain
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ RUN cargo build --release --package mpc-node
FROM debian:stable-slim as runtime
RUN apt-get update && apt-get install --assume-yes libssl-dev ca-certificates curl redis-server

RUN update-ca-certificates
RUN update-ca-certificates \
chown redis:redis /data

COPY --from=builder /usr/src/app/target/release/mpc-node /usr/local/bin/mpc-node
COPY chain-signatures/node/redis.conf /etc/redis/redis.conf

# Create a script to start both Redis and the Rust app
RUN echo "#!/bin/bash\nservice redis-server start ./redis.conf\nexec mpc-node start" > /start.sh \
RUN echo "#!/bin/bash\nservice redis-server start &\nexec mpc-node start" > /start.sh \
&& chmod +x /start.sh

WORKDIR /usr/local/bin
Expand Down
Loading

0 comments on commit 99e8f75

Please sign in to comment.