i hope this is right
This commit is contained in:
parent
06b905232f
commit
e72d1a17b2
Binary file not shown.
|
@ -48,6 +48,7 @@
|
|||
"update-chains": "svn checkout https://github.com/ethereum-lists/chains/trunk/_data/chains lib/resources/chains",
|
||||
"update-tokens": "DOCKER_BUILDKIT=1 docker build -f tokens.Dockerfile -t local/otterscan-tokens . && docker run local/otterscan-tokens cat /tokens.zip > lib/resources/tokens.zip",
|
||||
"update-all":"npm run update-chains && npm run update-tokens",
|
||||
"fullbuild": "npm run update-all && npm run build",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"source-map-explorer": "source-map-explorer build/static/js/*.js",
|
||||
|
|
|
@ -3,10 +3,10 @@ FROM alpine:3.15.0 as logobuilder
|
|||
RUN apk add imagemagick parallel subversion git zip tar
|
||||
WORKDIR /
|
||||
ADD https://github.com/trustwallet/assets.git /trustwallet
|
||||
RUN mkdir -p /assets/
|
||||
RUN mv /trustwallet/blockchains/ethereum/assets /assets/1/
|
||||
RUN mv /trustwallet/blockchains/polygon/assets /assets/137/
|
||||
RUN mv /trustwallet/blockchains/smartchain/assets /assets/56/
|
||||
RUN mkdir -p /tokens/
|
||||
RUN mv /trustwallet/blockchains/ethereum/assets/ /tokens/1/
|
||||
RUN mv /trustwallet/blockchains/polygon/assets/ /tokens/137/
|
||||
RUN mv /trustwallet/blockchains/smartchain/assets/ /tokens/56/
|
||||
RUN find . -name logo.png | parallel magick convert {} -filter Lanczos -resize 32x32 {}; exit 0
|
||||
RUN zip -r /tokens.zip /assets
|
||||
CMD ["echo","docker run <image> cat /tokens.zip > tokens.zip"]
|
||||
RUN zip -r /tokens.zip /tokens/*
|
||||
CMD ["echo","docker run <image> cat /tokens.zip >> tokens.zip"]
|
||||
|
|
Loading…
Reference in New Issue