fixes version not showing up in web ui
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user