Skip to content

Instantly share code, notes, and snippets.

@mariogarcia-ar
Forked from julien-h2/Dockerfile
Last active March 28, 2022 23:52
Show Gist options
  • Save mariogarcia-ar/8490b08b7e5f170982decb356139fed5 to your computer and use it in GitHub Desktop.
Save mariogarcia-ar/8490b08b7e5f170982decb356139fed5 to your computer and use it in GitHub Desktop.
Run Ganache GUI in a docker container
docker build . --tag ganache-gui
docker rm ganache-gui
docker run -d -p "7545:7545" --name ganache-gui ganache-gui
FROM debian:stable-slim
RUN apt-get update
RUN apt-get install -y wget libgtk-3-dev libgtkextra-dev libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 libx11-6 libx11-xcb-dev
# RUN wget https://github.com/trufflesuite/ganache/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage
RUN wget https://github.com/trufflesuite/ganache-ui/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage
RUN chmod +x ganache-2.5.4-linux-x86_64.AppImage
RUN ./ganache-2.5.4-linux-x86_64.AppImage --appimage-extract
RUN rm ganache-2.5.4-linux-x86_64.AppImage
ENV DISPLAY=host.docker.internal:0
EXPOSE 7545
ENTRYPOINT ["./squashfs-root/AppRun"]
# build:
# docker build . --tag ganache-gui
# run:
# docker rm ganache-gui
# docker run -d -p "7545:7545" --name ganache-gui ganache-gui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment