From 08a9267636896ad080520f4151112facb51b9562 Mon Sep 17 00:00:00 2001 From: Clank OpenClaw Date: Thu, 30 Jul 2026 18:08:50 -0400 Subject: [PATCH] Keep ingredient seed outside mounted data disk --- Dockerfile | 2 ++ README.md | 2 +- render.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8c5e094..6c9a682 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,13 @@ COPY package*.json ./ RUN npm install --omit=dev COPY . . +RUN mkdir -p /app/seed && cp /app/data/ingredients.json /app/seed/ingredients.json ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3333 ENV SQLITE_PATH=/app/data/chekit.sqlite +ENV INGREDIENTS_JSON=/app/seed/ingredients.json RUN npm run import-data diff --git a/README.md b/README.md index 3e54389..a860b3a 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Important Render behavior: - Render builds from `Dockerfile` via `runtime: docker`. - The service binds to `HOST=0.0.0.0` and Render's `PORT=10000`. - SQLite is stored on a persistent Render disk mounted at `/app/storage`. -- `preDeployCommand: npm run import-data` builds SQLite from `data/ingredients.json` before the service starts. +- `preDeployCommand: npm run import-data` builds SQLite from `/app/seed/ingredients.json` before the service starts. Deploy steps: diff --git a/render.yaml b/render.yaml index e8653e1..b63d9e0 100644 --- a/render.yaml +++ b/render.yaml @@ -14,6 +14,8 @@ services: value: 10000 - key: SQLITE_PATH value: /app/storage/chekit.sqlite + - key: INGREDIENTS_JSON + value: /app/seed/ingredients.json disk: name: chekit-core-data mountPath: /app/storage