From 4cf1b9d0276c808e8b44aa9b65984069670baf87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Wed, 24 Apr 2024 12:54:12 -0300 Subject: [PATCH] Change CMD for ENTRYPOINT --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffa973d90..1bded4e6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,11 @@ ENV MIX_ENV=prod RUN mix local.hex --force -RUN apt update && apt install -y cmake +# Install dependencies +RUN apt update +RUN apt install -y cmake +# Install rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="${PATH}:/root/.cargo/bin" @@ -29,8 +32,6 @@ COPY . . COPY --from=libp2p_builder /libp2p_port/libp2p_port /app/priv/native/libp2p_port RUN mix deps.get - RUN mix compile -CMD ["sh"] -# CMD ["iex", "-S", "mix", "run", "--", "--checkpoint-sync-url", "https://sepolia.checkpoint-sync.ethpandaops.io/", "--network", "sepolia", "--metrics", "--validator-file", "validator_sepolia.txt"] +ENTRYPOINT [ "iex", "-S", "mix", "run", "--"]