Add polygon/BSC assets from trustwallet; increase docker image size from 67->79MB; ignore errors from imagemagick because of BSC icons

This commit is contained in:
Willian Mitsuda 2022-02-25 21:52:54 -03:00
parent 08fd21ee41
commit 9b8cf9d4c8
2 changed files with 5 additions and 1 deletions

View File

@ -5,3 +5,5 @@ node_modules
!4bytes/with_parameter_names !4bytes/with_parameter_names
trustwallet trustwallet
!trustwallet/blockchains/ethereum/assets !trustwallet/blockchains/ethereum/assets
!trustwallet/blockchains/polygon/assets
!trustwallet/blockchains/smartchain/assets

View File

@ -11,7 +11,9 @@ FROM alpine:3.14.0 AS logobuilder
RUN apk add imagemagick parallel RUN apk add imagemagick parallel
WORKDIR /assets WORKDIR /assets
COPY trustwallet/blockchains/ethereum/assets /assets/1/ COPY trustwallet/blockchains/ethereum/assets /assets/1/
RUN find . -name logo.png | parallel magick convert {} -filter Lanczos -resize 32x32 {} COPY trustwallet/blockchains/polygon/assets /assets/137/
COPY trustwallet/blockchains/smartchain/assets /assets/56/
RUN find . -name logo.png | parallel magick convert {} -filter Lanczos -resize 32x32 {}; exit 0
FROM alpine:3.14.0 AS fourbytesbuilder FROM alpine:3.14.0 AS fourbytesbuilder
WORKDIR /signatures WORKDIR /signatures