Skip to content

Commit

Permalink
Merge pull request #7 from AdvaithD/docker
Browse files Browse the repository at this point in the history
init: dockerfile
  • Loading branch information
AdvaithD authored Dec 29, 2022
2 parents 8205ea5 + 2e17c9a commit 3b362aa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Use the latest foundry image
FROM ghcr.io/foundry-rs/foundry

# Copy our source code into the container
WORKDIR /app

# Build and test the source code
COPY . .
RUN forge build
RUN forge test -vvvvv
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ verify-contract-no-args:;
$(apiKey)

repl: chisel

docker-build:;
docker build -t protocol-pg:latest --no-cache --progress=plain .

docker-run:;
docker run protocol-pg:latest

0 comments on commit 3b362aa

Please sign in to comment.