File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change 11FROM debian:bullseye-slim
22
33# Create user & directories
4- RUN adduser --disabled-password --gecos "" --no-create-home --uid 1000 cronos \
5- && mkdir -p /home/cronos/data /home/cronos/config /home/cronos/bin
4+ RUN adduser --disabled-password --gecos "" --no-create-home --uid 1000 cronos
5+ RUN mkdir -p /home/cronos/data && mkdir -p /home/cronos/config
66
77# Install dependencies
8- RUN apt-get update -y && apt-get install -y wget curl procps net-tools jq lz4
9-
10- WORKDIR /tmp
8+ RUN apt-get update -y && apt-get install wget curl procps net-tools jq lz4 -y
119
1210# Download and verify tarball
13- RUN wget https://github.com/crypto-org-chain/cronos/releases/download/v1.5.0/cronos_1.5.0-testnet_Linux_x86_64.tar.gz \
14- && echo "d917ca990ed2415905a44ec48d6047664dad06b3441cd09b116f86f1880b1c2b cronos_1.5.0-testnet_Linux_x86_64.tar.gz" | sha256sum -c -
15-
16- # Extract and move binary
17- RUN tar -xzf cronos_1.5.0-testnet_Linux_x86_64.tar.gz \
18- && mv bin/cronosd /home/cronos/bin/cronosd \
19- && rm -rf cronos_1.5.0-testnet_Linux_x86_64 cronos_1.5.0-testnet_Linux_x86_64.tar.gz
20-
21- # Validate binary hash
22- RUN sha256sum /home/cronos/bin/cronosd
11+ 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 \
12+ && rm cronos_1.4.11_Linux_x86_64.tar.gz && mv ./* /home/cronos/
2313
2414# Set permissions
2515RUN chown -R cronos:cronos /home/cronos && chmod 1777 /tmp
2616
27- USER cronos
28- WORKDIR /home/cronos
17+ USER root
2918
3019ENTRYPOINT ["/home/cronos/bin/cronosd" ]
You can’t perform that action at this time.
0 commit comments