From 03d50585948d6ba7ab15c245dbe8eea72f79ed44 Mon Sep 17 00:00:00 2001 From: Nick Volynkin Date: Wed, 19 Jul 2023 10:51:48 +0300 Subject: [PATCH] docker: publish a reusable image --- .dockerignore | 17 +++++++++++++++++ Dockerfile | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e35ebad --- /dev/null +++ b/.dockerignore @@ -0,0 +1,17 @@ +# Things we don't want in a Docker image +.env +.git +.github +.idea + +# build artifacts +coverage +coverage.json +node_modules +typechain +typechain-types + +# Hardhat files +artifacts +cache +deployments diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4f09cda --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:18.18-bullseye + +ADD . /opt/evm-placeholder-verification + +WORKDIR /opt/evm-placeholder-verification + +RUN npm i +RUN npx hardhat compile \ No newline at end of file