mirror of
https://github.com/gravitystorm/openstreetmap-carto.git
synced 2025-09-24 18:03:01 +02:00
29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
FROM ubuntu:bionic
|
|
|
|
# Style dependencies
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
ca-certificates curl gnupg postgresql-client python3 python3-distutils \
|
|
fonts-hanazono fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted \
|
|
mapnik-utils nodejs npm ttf-unifont unzip && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Kosmtik with plugins, forcing prefix to /usr because bionic sets
|
|
# npm prefix to /usr/local, which breaks the install
|
|
RUN npm set prefix /usr && npm install -g kosmtik
|
|
|
|
WORKDIR /usr/lib/node_modules/kosmtik/
|
|
RUN kosmtik plugins --install kosmtik-overpass-layer \
|
|
--install kosmtik-fetch-remote \
|
|
--install kosmtik-overlay \
|
|
--install kosmtik-open-in-josm \
|
|
--install kosmtik-map-compare \
|
|
--install kosmtik-osm-data-overlay \
|
|
--install kosmtik-mapnik-reference \
|
|
--install kosmtik-geojson-overlay \
|
|
&& cp /root/.config/kosmtik.yml /tmp/.kosmtik-config.yml
|
|
|
|
# Closing section
|
|
RUN mkdir -p /openstreetmap-carto
|
|
WORKDIR /openstreetmap-carto
|
|
|
|
USER 1000
|
|
CMD sh scripts/docker-startup.sh kosmtik
|