From 9b8cf9d4c8b47f5e44200ac112ab85a6a53db904 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 25 Feb 2022 21:52:54 -0300 Subject: [PATCH 1/2] Add polygon/BSC assets from trustwallet; increase docker image size from 67->79MB; ignore errors from imagemagick because of BSC icons --- .dockerignore | 2 ++ Dockerfile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index ee24273..1cf24b2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,3 +5,5 @@ node_modules !4bytes/with_parameter_names trustwallet !trustwallet/blockchains/ethereum/assets +!trustwallet/blockchains/polygon/assets +!trustwallet/blockchains/smartchain/assets diff --git a/Dockerfile b/Dockerfile index e0e0fb2..1f03df4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,9 @@ FROM alpine:3.14.0 AS logobuilder RUN apk add imagemagick parallel WORKDIR /assets 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 WORKDIR /signatures From 6c2a5357d8c76e3e487165d33989499403eeb5dd Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 26 Feb 2022 00:17:24 -0300 Subject: [PATCH 2/2] Increment alpine image version --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f03df4..15a9a15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16.13.0-alpine3.14 AS builder +FROM node:16.14.0-alpine3.15 AS builder WORKDIR /otterscan-build COPY ["package.json", "package-lock.json", "/otterscan-build/"] RUN npm install @@ -7,7 +7,7 @@ COPY ["public", "/otterscan-build/public/"] COPY ["src", "/otterscan-build/src/"] RUN npm run build -FROM alpine:3.14.0 AS logobuilder +FROM alpine:3.15.0 AS logobuilder RUN apk add imagemagick parallel WORKDIR /assets COPY trustwallet/blockchains/ethereum/assets /assets/1/ @@ -15,12 +15,12 @@ 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.15.0 AS fourbytesbuilder WORKDIR /signatures COPY 4bytes/signatures /signatures/ COPY 4bytes/with_parameter_names /signatures/ -FROM alpine:3.14.0 AS topic0builder +FROM alpine:3.15.0 AS topic0builder WORKDIR /topic0 COPY topic0/with_parameter_names /topic0/