From 950eebb81f0fa6afbf8a1d3866eda412e4638d09 Mon Sep 17 00:00:00 2001 From: scolear Date: Wed, 12 Jun 2024 12:14:55 +0200 Subject: [PATCH] feat: better docker setup for local dev --- Dockerfile | 4 ++++ docker-compose.yml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f0f8fbe..62c9e62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 8a504b5..f6202a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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