fixes version not showing up in web ui
All checks were successful
Build / test (push) Successful in 9m28s
Build / release (push) Successful in 1s
Build / build (push) Successful in 18s

This commit is contained in:
2026-03-28 02:08:58 -04:00
parent aeb5fa4fb7
commit d7d4bbc099
6 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,6 @@
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY . /usr/share/nginx/html
RUN awk -F'"' '/"version"/{printf "const VERSION = \"%s\";\n", $4; exit}' \
/usr/share/nginx/html/package.json \
> /usr/share/nginx/html/js/version.js