revert: remove park-meta.json copy from Dockerfile
All checks were successful
Build and Deploy / Build & Push (push) Successful in 3m34s

Volume mount hides image-layer files on existing deployments anyway.
Deploy manually: curl -o park-meta.json <gitea-raw-url>

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 14:02:39 -04:00
parent 9700d0bd9a
commit bad366d5ea

View File

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