From f0850e82a6c1e6915d74f61f6d531b38544d3d6e Mon Sep 17 00:00:00 2001 From: Dmitrii Spichakov Date: Tue, 14 Oct 2025 15:41:56 -0300 Subject: [PATCH] Cornos mainnet image bump v1.4.11 Signed-off-by: Dmitrii Spichakov --- Dockerfile | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b977d6..fb3f6ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,30 +1,19 @@ FROM debian:bullseye-slim # Create user & directories -RUN adduser --disabled-password --gecos "" --no-create-home --uid 1000 cronos \ - && mkdir -p /home/cronos/data /home/cronos/config /home/cronos/bin +RUN adduser --disabled-password --gecos "" --no-create-home --uid 1000 cronos +RUN mkdir -p /home/cronos/data && mkdir -p /home/cronos/config # Install dependencies -RUN apt-get update -y && apt-get install -y wget curl procps net-tools jq lz4 - -WORKDIR /tmp +RUN apt-get update -y && apt-get install wget curl procps net-tools jq lz4 -y # Download and verify tarball -RUN wget https://github.com/crypto-org-chain/cronos/releases/download/v1.5.0/cronos_1.5.0-testnet_Linux_x86_64.tar.gz \ - && echo "d917ca990ed2415905a44ec48d6047664dad06b3441cd09b116f86f1880b1c2b cronos_1.5.0-testnet_Linux_x86_64.tar.gz" | sha256sum -c - - -# Extract and move binary -RUN tar -xzf cronos_1.5.0-testnet_Linux_x86_64.tar.gz \ - && mv bin/cronosd /home/cronos/bin/cronosd \ - && rm -rf cronos_1.5.0-testnet_Linux_x86_64 cronos_1.5.0-testnet_Linux_x86_64.tar.gz - -# Validate binary hash -RUN sha256sum /home/cronos/bin/cronosd +RUN cd /tmp && wget --no-check-certificate https://github.com/crypto-org-chain/cronos/releases/download/v1.4.11/cronos_1.4.11_Linux_x86_64.tar.gz && tar -xvf cronos_1.4.11_Linux_x86_64.tar.gz \ + && rm cronos_1.4.11_Linux_x86_64.tar.gz && mv ./* /home/cronos/ # Set permissions RUN chown -R cronos:cronos /home/cronos && chmod 1777 /tmp -USER cronos -WORKDIR /home/cronos +USER root ENTRYPOINT ["/home/cronos/bin/cronosd"]