Include version info in game
All checks were successful
Build and Publish Docker Image / Build and Validate (pull_request) Successful in 8s
Build and Publish Docker Image / Publish to Registry (pull_request) Has been skipped

This commit is contained in:
Juan Sebastián Montoya 2025-11-26 11:04:17 -05:00
parent aeb14921bc
commit f3b11c7d63
4 changed files with 114 additions and 8 deletions

View file

@ -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