diff --git a/docker/Dockerfile b/docker/Dockerfile index 6fea617..2ae33ee 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,6 +9,9 @@ WORKDIR /usr/src/app COPY . . RUN rm -rf node_modules/ RUN npm install + +RUN sed -i -e 's|"./dist/index.js"|{"require": "./dist/cjs/index.js", "import": "./dist/esm/index.js"}|g' node_modules/@cef-ebsi/key-did-resolver/package.json + RUN find ./ -name "*.js" -type f -exec sed -i -e "s/'did:key:zUC7': bls12381,/'did:key:zUC7': bls12381,'did:key:z3tE': bls12381,/g" {} \; RUN find ./ -name "*.ts" -type f -exec sed -i -e "s/'did:key:zUC7': typeof bls12381;/'did:key:zUC7': typeof bls12381;'did:key:z3tE': typeof bls12381;/g" {} \;