revert: remove park-meta.json copy from Dockerfile
All checks were successful
Build and Deploy / Build & Push (push) Successful in 3m34s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user