forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): support ARM architecture deployment
- Loading branch information
1 parent
90b7f96
commit 7026e9b
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |