feat: v0.4.1 — untrack map-asset pack (~100 MB): compose volume mount + runtime fallback to remote OFM styles
This commit is contained in:
+3
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user