Skip to content

Instantly share code, notes, and snippets.

@julien-h
Created January 13, 2021 18:50
Show Gist options
  • Save julien-h/3217e99201a2d354932f7be86da8dd21 to your computer and use it in GitHub Desktop.
Save julien-h/3217e99201a2d354932f7be86da8dd21 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 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