diff --git a/chain-api/.dockerignore b/chain-api/.dockerignore new file mode 100644 index 0000000..fd80b83 --- /dev/null +++ b/chain-api/.dockerignore @@ -0,0 +1,5 @@ +Dockerfile +.dockerignore +node_modules +npm-debug.log +dist \ No newline at end of file diff --git a/chain-api/Dockerfile b/chain-api/Dockerfile index ab1bf55..d06d24e 100644 --- a/chain-api/Dockerfile +++ b/chain-api/Dockerfile @@ -10,4 +10,6 @@ COPY . . RUN npm run build +RUN npx hardhat compile && npx hardhat typechain + CMD [ "node", "dist/src/main.js" ]