Skip to content

Commit

Permalink
docker: publish a reusable image
Browse files Browse the repository at this point in the history
  • Loading branch information
NickVolynkin committed Nov 14, 2023
1 parent aaddae4 commit a504f04
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
run: |
npm install
- name: Compile circuit contracts
run: |
npx hardhat compile
- name: Hadrhat tests
run: |
npx hardhat test
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:18.18-bullseye

ADD . /opt/evm-placeholder-verification

WORKDIR /opt/evm-placeholder-verification

RUN npm install
RUN npx hardhat compile

0 comments on commit a504f04

Please sign in to comment.