mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
docker: add option to overwrite bknd version used (#136)
This commit is contained in:
@@ -4,12 +4,9 @@ description: 'Official docker image for bknd'
|
||||
---
|
||||
|
||||
# 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.
|
||||
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.
|
||||
|
||||
Locate the Dockerfile either by pulling the [repository](https://github.com/bknd-io/bknd) and navigating to the `docker`
|
||||
directory,
|
||||
or download from [here](https://github.com/bknd-io/bknd/blob/main/docker/Dockerfile).
|
||||
Locate the Dockerfile either by pulling the [repository](https://github.com/bknd-io/bknd) and navigating to the `docker` directory, or download from [here](https://github.com/bknd-io/bknd/blob/main/docker/Dockerfile).
|
||||
|
||||
## Building the Docker image
|
||||
To build the Docker image, run the following command:
|
||||
@@ -18,6 +15,13 @@ To build the Docker image, run the following command:
|
||||
docker build -t bknd .
|
||||
```
|
||||
|
||||
If you want to override the bknd version used, you can pass a `VERSION` build argument:
|
||||
```bash
|
||||
docker build --build-arg VERSION=<version> -t bknd .
|
||||
````
|
||||
|
||||
```bash
|
||||
|
||||
## Running the Docker container
|
||||
To run the Docker container, run the following command:
|
||||
|
||||
@@ -25,11 +29,7 @@ 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](https://docs.bknd.io/cli) guide) to the
|
||||
docker container as you'd do with
|
||||
`npx bknd
|
||||
run`,
|
||||
like so:
|
||||
You can pass the same CLI arguments (see [Using the CLI](https://docs.bknd.io/cli) guide) to the docker container as you'd do with `npx bknd run`, like so:
|
||||
|
||||
```bash
|
||||
docker run -p 1337:1337 -e ARGS="--db-url file:/data/data.db" bknd
|
||||
|
||||
Reference in New Issue
Block a user