mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
932 B
932 B
Official bknd Docker image
The docker image intentially doesn't copy any data into the image for now, so you can copy the Dockerfile and build the image anywhere.
Building the Docker image
To build the Docker image, run the following command:
docker build -t bknd .
Running the Docker container
To run the Docker container, run the following command:
docker run -p 1337:1337 bknd
You can pass the same CLI arguments (see Using the CLI guide) to the docker container as you'd do with npx bknd run, like so:
docker run -p 1337:1337 -e ARGS="--db-url file:/data/data.db" bknd
Or connect to a remote turso database:
docker run -p 1337:1337 -e ARGS="--db-url libsql://<db>.turso.io --db-token <token>" bknd
To mount the data directory to the host, you can use the -v flag:
docker run -p 1337:1337 -v /path/to/data:/data bknd