feat: v0.4.1 — untrack map-asset pack (~100 MB): compose volume mount + runtime fallback to remote OFM styles

This commit is contained in:
2026-09-17 09:14:34 +00:00
parent 501c452377
commit 1c50cfeab2
791 changed files with 257 additions and 5171 deletions
+3 -2
View File
@@ -30,7 +30,8 @@ COPY --from=prod-deps /app/node_modules ./node_modules
COPY --from=build /app/.next ./.next
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/data ./data
# Self-hosted map assets (styles/fonts/sprites) — next start serves public/ from disk.
COPY --from=build /app/public ./public
# No public/ in the image: the generated map-asset pack (~100 MB, not in git) is
# volume-mounted by docker-compose as ./public → /app/public; without it the app
# falls back to remote openfreemap.org styles at runtime.
EXPOSE 3000
CMD ["npm", "run", "start"]