diff --git a/Dockerfile b/Dockerfile index a61405e..e1b175c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,13 +44,8 @@ COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules RUN npx playwright install --with-deps chromium && \ chown -R nextjs:nodejs /app/.playwright -# Seed data directory with park-meta.json (RCDB coaster lists + rcdb_id mappings). -# Must be copied before VOLUME so Docker initialises a fresh named volume with -# this file already present. Existing volumes retain their own copy. +# SQLite data directory — mount a named volume here for persistence RUN mkdir -p /app/data && chown nextjs:nodejs /app/data -COPY --from=builder --chown=nextjs:nodejs /app/data/park-meta.json ./data/park-meta.json - -# SQLite database lives here — mount a named volume for persistence VOLUME ["/app/data"] USER nextjs