btcpayserver / btcpayserver-docker

Docker resources for hosting BTCPayServer easily
MIT License
584 stars 358 forks source link

Install on Dokku (or Heroku) #304

Closed raminious closed 4 years ago

raminious commented 4 years ago

Hey, I'm trying to install this repo on a Dokku server. basically Dokku and Heroku support Buildpack and Dockerfile and obviously I should use a Dockerfile http://dokku.viewdocs.io/dokku/deployment/methods/dockerfiles/

this is the Dockerfile that I've created but I'm getting error during the deployment.

FROM ubuntu:18.04

COPY . ./
CMD . ./btcpay-setup.sh -i

My env variables:

export BTCPAY_HOST="btc.my-domian.com"
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_CRYPTO1="ltc"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-xs opt-more-memory"
export BTCPAYGEN_REVERSEPROXY="nginx"
export BTCPAYGEN_LIGHTNING="clightning"
export BTCPAY_ENABLE_SSH=true

The error:

-----> Waiting for 10 seconds ...
remote: App container failed to start!!
=====> btc web container output:
       /bin/sh: 5: ./btcpay-setup.sh: [[: not found
       /bin/sh: 10: ./btcpay-setup.sh: [[: not found
       /bin/sh: 34: ./btcpay-setup.sh: [[: not found
       /bin/sh: 42: ./btcpay-setup.sh: [[: not found
       /bin/sh: 46: ./btcpay-setup.sh: git: not found
       /bin/sh: 41: ./btcpay-setup.sh: git: not found
       You must run this script inside the git repository of btcpayserver-docker
=====> end btc web container output
NicolasDorier commented 4 years ago

install bash