Skip to content

Commit

Permalink
feat: better docker setup for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed Jun 12, 2024
1 parent 47456e6 commit 950eebb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ COPY --from=dlc-solidity-build /app/dlc-solidity /app/dlc-solidity

WORKDIR /app/dlc-solidity

RUN npm link

RUN echo "HARDHAT_NETWORK=localhost" >> /app/dlc-solidity/.env

COPY ./docker/scripts/check-service.sh /check-service.sh
RUN chmod +x /check-service.sh

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
services:
hardhat:
container_name: hardhat
build: .
ports:
- "8545:8545"
volumes:
- ./docker/deploymentFiles:/app/dlc-solidity/deploymentFiles
- ../dlc-attestor-stack/attestor/observer/contracts:/app/dlc-solidity/deploymentFiles

0 comments on commit 950eebb

Please sign in to comment.