Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFA11 committed Oct 19, 2024
1 parent beecf2d commit d9d237d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ WORKDIR /tilemaker/landcover
RUN curl -O https://naciscdn.org/naturalearth/10m/physical/ne_10m_antarctic_ice_shelves_polys.zip
RUN curl -O https://naciscdn.org/naturalearth/10m/physical/ne_10m_glaciated_areas.zip
RUN curl -O https://naciscdn.org/naturalearth/10m/cultural/ne_10m_urban_areas.zip
RUN unzip -oj ne_10m_antarctic_ice_shelves_polys.zip
RUN unzip -oj ne_10m_glaciated_areas.zip
RUN unzip -oj ne_10m_urban_areas.zip
RUN unzip -o ne_10m_antarctic_ice_shelves_polys.zip -d ne_10m_antarctic_ice_shelves_polys
RUN unzip -o ne_10m_glaciated_areas.zip -d ne_10m_glaciated_areas
RUN unzip -o ne_10m_urban_areas.zip -d ne_10m_urban_areas

FROM debian:bookworm-slim AS tilemaker-generate

Expand All @@ -36,11 +36,10 @@ COPY --from=tilemaker-compile /tilemaker/resources ./resources
COPY --from=tilemaker-compile /tilemaker/coastline ./coastline
COPY --from=tilemaker-compile /tilemaker/landcover ./landcover

# RUN jq ".settings.include_ids=true" resources/config-openmaptiles.json | sponge resources/config-openmaptiles.json
RUN jq '.settings.include_ids=true | .settings.maxzoom = 16 | .settings.basezoom = 16 | .settings.combine_below = 16 | .layers.building.minzoom = 12 | (.layers[] | .maxzoom) |= if . == 14 then 16 else . end' resources/config-openmaptiles.json | sponge resources/config-openmaptiles.json

RUN curl -O https://download.geofabrik.de/europe/turkey-latest.osm.pbf
RUN ./tilemaker --fast --compact --no-compress-nodes --no-compress-ways --materialize-geometries --input=turkey-latest.osm.pbf --output=turkey.mbtiles --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua
RUN ./tilemaker --fast --no-compress-nodes --no-compress-ways --materialize-geometries --input=turkey-latest.osm.pbf --output=turkey.mbtiles --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua

FROM golang:alpine AS tileserver-build

Expand Down

0 comments on commit d9d237d

Please sign in to comment.