Include version info in game
This commit is contained in:
parent
aeb14921bc
commit
f3b11c7d63
4 changed files with 114 additions and 8 deletions
|
|
@ -1,5 +1,12 @@
|
|||
FROM nginx:alpine
|
||||
|
||||
# Accept build argument for version
|
||||
ARG VERSION=dev
|
||||
ARG BUILD_DATE=unknown
|
||||
|
||||
# Create version.json file with build information
|
||||
RUN printf '{"version":"%s","buildDate":"%s"}\n' "${VERSION}" "${BUILD_DATE}" > /usr/share/nginx/html/version.json
|
||||
|
||||
# Copy the HTML file
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue