Skip to content

Commit

Permalink
copy packages to eth-node (fix #13498)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemsos committed Apr 23, 2024
1 parent bf3ebe1 commit a8d1e8f
Show file tree
Hide file tree
Showing 9 changed files with 9,265 additions and 1,046 deletions.
4 changes: 3 additions & 1 deletion docker/development/eth-node/.dockerignore
@@ -1,3 +1,5 @@
node_modules
**/node_modules
cache
.yarn
.yarn
!.yarn/releases
4 changes: 3 additions & 1 deletion docker/development/eth-node/.gitignore
@@ -1,3 +1,5 @@
cache
.yarn
networks.json
!.yarn/releases
networks.json
packages
1 change: 1 addition & 0 deletions docker/development/eth-node/.yarnrc.yml
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-4.1.1.cjs
7 changes: 5 additions & 2 deletions docker/development/eth-node/Dockerfile
Expand Up @@ -11,10 +11,13 @@ WORKDIR /app
# install deps
COPY --chown=node package.json package.json
COPY --chown=node yarn.lock yarn.lock
RUN yarn install --pure-lockfile
COPY --chown=node .yarn .yarn
COPY --chown=node .yarnrc.yml .yarnrc.yml

# add files
COPY --chown=node . .

RUN yarn

EXPOSE 8545
CMD [ "yarn", "hardhat", "node", "--hostname", "0.0.0.0" ]
CMD [ "yarn", "hardhat", "node", "--hostname", "0.0.0.0" ]
9 changes: 7 additions & 2 deletions docker/development/eth-node/package.json
Expand Up @@ -8,12 +8,17 @@
"provision": "hardhat run scripts/provision.ts",
"start": "hardhat node"
},
"workspaces": [
"packages/**"
],
"dependencies": {
"@nomiclabs/hardhat-ethers": "2.2.3",
"@unlock-protocol/contracts": "latest",
"@unlock-protocol/hardhat-plugin": "latest",
"@unlock-protocol/contracts": "workspace:^",
"@unlock-protocol/hardhat-plugin": "workspace:^",
"@unlock-protocol/networks": "workspace:^",
"eslint": "8.54.0",
"ethers": "5.7.2",
"fs-extra": "11.2.0",
"hardhat": "2.20.1",
"hardhat-erc1820": "0.1.0",
"ts-node": "10.9.2",
Expand Down

0 comments on commit a8d1e8f

Please sign in to comment.