Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
build: write version.json from VERSION build-arg (#754)
chriscrosstalk9cbf8c2135d2
diff --git a/Dockerfile b/Dockerfileindex c91f9acb..03acaa9d 100644--- a/Dockerfile+++ b/Dockerfile@@ -43,8 +43,10 @@ ENV NODE_ENV=productionWORKDIR /appCOPY --from=production-deps /app/node_modules /app/node_modulesCOPY --from=build /app/build /app-# Copy root package.json for version info-COPY package.json /app/version.json+# Generate version.json from the VERSION build-arg so the image tag is the+# single source of truth (previously copied root package.json, which drifted+# from the tag when semantic-release did not commit the bump back).+RUN echo "{\"version\":\"${VERSION}\"}" > /app/version.json# Copy docs and README for access within the containerCOPY admin/docs /app/docs