From 0772278816e27c84cf53458a81ee64548a2e3c26 Mon Sep 17 00:00:00 2001 From: Shadowy Super Coder Date: Thu, 15 Aug 2024 14:11:31 -0600 Subject: [PATCH] accept conf as a runtime mount --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8318307..0ab286f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,9 +16,7 @@ WORKDIR /app COPY --from=builder /app/target/release/btc_rpc_proxy /app/btc_rpc_proxy -COPY btc_rpc_proxy.toml /app/btc_rpc_proxy.toml - -RUN chmod 600 /app/btc_rpc_proxy.toml RUN chmod +x /app/btc_rpc_proxy -CMD [ "/app/btc_rpc_proxy", "--conf", "btc_rpc_proxy.toml" ] \ No newline at end of file +SHELL [ "/bin/bash", "-c" ] +ENTRYPOINT chmod 600 /app/btc_rpc_proxy.toml && exec /app/btc_rpc_proxy --conf /app/btc_rpc_proxy.toml \ No newline at end of file