janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.52k stars 1.13k forks source link

Automate docker build and publish. #62

Open Kukks opened 5 years ago

Kukks commented 5 years ago

Currently, there is one remotely close published docker image of this repo and it seems to be outdated. Seeing as you have a dockerfile in the project already, I'd recommend you configure an automated build on Dockerhub. See https://docs.docker.com/docker-hub/github/

loganmarchione commented 3 years ago

@janoside I was also wondering about this. I would love to run this in Docker (pulled from Docker Hub) vs installing manually with NPM.

Also, there are a bunch of no-name builds of this out there, would be nice to have an officially blessed container.

loganmarchione commented 3 years ago

FYI if anyone finds this.

My main issue was having to clone the repo first. However, Docker Compose allows you to build from a remote URL without cloning the repo first.

version: '3'
services:
  btc-rpc-explorer:
    container_name: btc-rpc-explorer
    restart: unless-stopped
    environment:
      - BTCEXP_HOST=0.0.0.0
    ports:
      - '3002:3002'
    build:
      context: https://github.com/janoside/btc-rpc-explorer.git
      dockerfile: Dockerfile
st3b1t commented 1 year ago

about this I just send a PR to include a working docker-compose.yml file https://github.com/janoside/btc-rpc-explorer/pull/549