diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..303ff18 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules/ +.idea/ +lib/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..98e692f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:14 + +WORKDIR /work + +RUN yarn global add sourcify-to-etherscan + +ENTRYPOINT sourcify-to-etherscan diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..8fe1d73 --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,11 @@ +FROM node:14 + +WORKDIR /work + +COPY package.json yarn.lock ./ + +RUN yarn + +COPY . . + +ENTRYPOINT ./bin/run diff --git a/README.md b/README.md index 7700c50..c9b0fa1 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,13 @@ USAGE ... ``` + +### Docker + +```bash +$ docker run kirillfedoseev/sourcify-to-etherscan:latest COMMAND +``` + # Commands * [`sourcify-to-etherscan help [COMMAND]`](#sourcify-to-etherscan-help-command)