From 094f4d0b608f9a313e4ba83482f125625faa8de6 Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Fri, 4 Jun 2021 16:51:59 +0700 Subject: [PATCH] Add dockerfiles --- .dockerignore | 3 +++ Dockerfile | 7 +++++++ Dockerfile.dev | 11 +++++++++++ README.md | 7 +++++++ 4 files changed, 28 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 Dockerfile.dev 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)