build: add POETRY_INSTALL_ARGS build argument to Dockerfile (#3149)

This commit is contained in:
Se7enZ
2025-05-11 04:47:45 +02:00
committed by GitHub
parent 8458b4d84b
commit bd19d78834
2 changed files with 12 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ SUPER_USER=be54db7f245346c8833eaa430e1e0405 LNBITS_ADMIN_UI=true ./result/bin/ln
## Option 4: Docker
use latest version from docker hub
Use latest version from Docker Hub.
```sh
docker pull lnbits/lnbits
@@ -159,7 +159,7 @@ mkdir data
docker run --detach --publish 5000:5000 --name lnbits --volume ${PWD}/.env:/app/.env --volume ${PWD}/data/:/app/data lnbits/lnbits
```
build the image yourself
Build the image yourself.
```sh
git clone https://github.com/lnbits/lnbits.git
@@ -170,6 +170,12 @@ mkdir data
docker run --detach --publish 5000:5000 --name lnbits --volume ${PWD}/.env:/app/.env --volume ${PWD}/data/:/app/data lnbits/lnbits
```
You can optionally override the arguments that are passed to `poetry install` during the build process by setting the Docker build argument named `POETRY_INSTALL_ARGS`. For example, to enable the Breez funding source, build the Docker image with the command:
```sh
docker build --build-arg POETRY_INSTALL_ARGS="-E breez" -t lnbits/lnbits .
```
## Option 5: Fly.io
Fly.io is a docker container hosting platform that has a generous free tier. You can host LNbits for free on Fly.io for personal use.