Skip to content

Commit

Permalink
feat(docker): support ARM architecture deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
halibobo1205 authored Dec 5, 2024
1 parent 90b7f96 commit 7026e9b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker/arm64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM amazoncorretto:17.0.13

ENV TMP_DIR="/tron-build"
ENV BASE_DIR="/java-tron"
ENV UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE


RUN set -o errexit -o nounset \
&& yum -y install git unzip wget \
&& echo "git clone" \
&& mkdir -p $TMP_DIR \
&& cd $TMP_DIR \
&& git clone https://github.com/tronprotocol/java-tron.git \
&& cd java-tron \
&& git checkout master \
&& ./gradlew build -x test \
&& cd build/distributions \
&& unzip -o java-tron-1.0.0.zip \
&& mv java-tron-1.0.0 $BASE_DIR \
&& rm -rf $TMP_DIR \
&& rm -rf ~/.gradle \
&& yum clean all

RUN wget -P $BASE_DIR/config https://raw.githubusercontent.com/tronprotocol/tron-deployment/master/main_net_config.conf

COPY docker-entrypoint.sh $BASE_DIR/bin

WORKDIR $BASE_DIR

ENTRYPOINT ["./bin/docker-entrypoint.sh"]

0 comments on commit 7026e9b

Please sign in to comment.