Skip to content

Instantly share code, notes, and snippets.

@DoZator
Created May 6, 2022 13:19
Show Gist options
  • Save DoZator/f5d2f5c2d620996d02eafb0d935258b8 to your computer and use it in GitHub Desktop.
Save DoZator/f5d2f5c2d620996d02eafb0d935258b8 to your computer and use it in GitHub Desktop.
Run ganache-cli inside Docker Container

Build docker image

docker build -t ganache .

Start a container

docker run --name ganache_app -p 8545:8545 -d ganache
FROM node:16-alpine3.12
RUN npm install -g ganache-cli
CMD ["ganache-cli", "-h", "0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment