Skip to content

Commit b8abd88

Browse files
authored
Cornos mainnet image bump v1.4.11 (#84)
Signed-off-by: Dmitrii Spichakov <[email protected]>
1 parent 4482701 commit b8abd88

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

Dockerfile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
11
FROM 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
2515
RUN chown -R cronos:cronos /home/cronos && chmod 1777 /tmp
2616

27-
USER cronos
28-
WORKDIR /home/cronos
17+
USER root
2918

3019
ENTRYPOINT ["/home/cronos/bin/cronosd"]

0 commit comments

Comments
 (0)