summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 09:56:10 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 09:56:10 +0200
commit041b2dd29d30a8ecadca22ef25282cbad672d94e (patch)
tree303cee3bb41813764b131c0a0f4430d4dbca105d /Dockerfile
parent6de6ffa3e52a2bec519c2a052d0f26d01e38f167 (diff)
downloadbokf-0.1.12.tar.gz
bokf-0.1.12.zip
Show tui and server versions in the status line; derive version from gitv0.1.12
- build: VERSION defaults to git describe, deploy passes the tag via --build-arg - bokftui: srv version from meta, right-aligned next to the status line
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 0c22b19..d658d70 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,14 @@
# syntax=docker/dockerfile:1
FROM debian:bookworm-slim AS build
+ARG VERSION=0.1.0-dev
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential libncurses-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
-RUN make -j"$(nproc)" && make test
+RUN make -j"$(nproc)" VERSION="$VERSION" && make test VERSION="$VERSION"
FROM debian:bookworm-slim AS runtime
RUN apt-get update \