Skip to content

Commit

Permalink
fix: run forge install within the container
Browse files Browse the repository at this point in the history
  • Loading branch information
pikonha committed Mar 5, 2024
1 parent 8894cdf commit c812dd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=true

- name: Build Docker image
run: docker build -t blockful/external-resolver-contracts -f packages/contracts/Dockerfile packages/contracts
with:
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=true
- name: Start Docker container
run: docker run -d --name external-resolver-contracts -p 8545:8545 blockful/external-resolver-contracts
Expand Down
1 change: 1 addition & 0 deletions packages/contracts/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/**
1 change: 1 addition & 0 deletions packages/contracts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM ghcr.io/foundry-rs/foundry
WORKDIR /app
COPY . .

RUN forge install
RUN forge build

# Runs `forge script` against the anvil chain to set up contracts
Expand Down

0 comments on commit c812dd1

Please sign in to comment.