From f5f2944516afffb5c39287be3ed2b7984b419986 Mon Sep 17 00:00:00 2001 From: Jake Turner <52841588+jakeaturner@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:24:37 -0700 Subject: [PATCH] build(Dockerfile): run drug reference codegen step (#1132) --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7b1e4f0..dbfaca2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,14 @@ FROM base AS build WORKDIR /app COPY --from=deps /app/node_modules /app/node_modules ADD 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-data RUN node ace build # Production stage