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(Dockerfile): run drug reference codegen step (#1132)
Jake Turnerf5f2944516af
diff --git a/Dockerfile b/Dockerfileindex 7b1e4f03..dbfaca2e 100644--- a/Dockerfile+++ b/Dockerfile@@ -28,6 +28,14 @@ FROM base AS buildWORKDIR /appCOPY --from=deps /app/node_modules /app/node_modulesADD admin/ ./+# Regenerate the curated drug-reference data modules+# (app/data/{conditions,natural_remedies,home_remedies}.ts) from their single+# source of truth — the repo-root collections/*.json — so the JSON is what gets+# compiled into the image and the committed .ts can never silently drift from it+# in a build. The gen script resolves ../../collections relative to admin/scripts,+# which is /collections once admin/ has been copied to /app.+COPY collections/ /collections/+RUN npm run gen:curated-dataRUN node ace build# Production stage