Skip to content

Commit

Permalink
add config to docker ignore, modify readme for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalgek committed Dec 19, 2024
1 parent c6df5ad commit f94ac0c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
cache
artifacts
configs
.DS_Store
.editorconfig
.env
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ RUN foundryup

RUN chmod +x ./initialize.sh && ./initialize.sh

CMD ["yarn", "start", "./configs/unichain_sepolia.yaml"]
ENTRYPOINT ["yarn", "start"]

CMD ["./configs/unichain_sepolia.yaml"]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ yarn start ./path/to/config.yaml

> **Note**: During execution, you will be prompted to confirm certain steps in the deployment process. The entire process typically takes around 15 minutes, depending on network conditions and RPC response times.
### Docker

To reate container:

```bash
docker build -t <build_name> .
```

Provide .env file and path to config to run it:

```
docker run --env-file .env --rm \
-v $(pwd)/path/to/config.yaml:/app/path/to/config.yaml \
<build_name> ./path/to/config.yaml
```

## Contributing

Contributions are appreciated! Please read the [Contributing Guidelines](CONTRIBUTING.md) to get started.
Expand Down

0 comments on commit f94ac0c

Please sign in to comment.