FROM ghcr.io/rgb-tools/rgb-proxy-server:0.3.0 # change consignment.post json-rpc method to return null RUN sed -i '/consignment.post/{n;s/Promise/Promise/;}' \ src/controllers/api.ts \ && LINE=$(grep -Fn 'Promise' src/controllers/api.ts |cut -d: -f1) \ && sed -i "$((LINE+1)),+34d" src/controllers/api.ts # rebuild app RUN npm run build