Skip to content

Instantly share code, notes, and snippets.

@schadokar
Created April 11, 2019 08:15
Show Gist options
  • Save schadokar/d08177076b99a0284d6c7f46b4bb9cc0 to your computer and use it in GitHub Desktop.
Save schadokar/d08177076b99a0284d6c7f46b4bb9cc0 to your computer and use it in GitHub Desktop.
Dockerfile for the ganache-cli image
# base image - node:alpine
FROM node:alpine
# set the working directory to /app
WORKDIR /app
# install ganache-cli globally
RUN npm install -g ganache-cli
# set the command ganache-cli -h 0.0.0.0
# for docker ganache-cli host on 0.0.0.0
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