Created
December 28, 2016 03:46
-
-
Save dooman87/1b49b4ccdede04fe7d5ae12f135c485c to your computer and use it in GitHub Desktop.
renderer/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dpokidov/gopnik | |
RUN apt-get update && \ | |
apt-get install -y git curl unzip node-carto mapnik-utils fontconfig && \ | |
rm -rf /var/lib/apt/lists/* | |
WORKDIR / | |
RUN wget https://github.com/adobe-fonts/source-sans-pro/archive/2.020R-ro/1.075R-it.tar.gz && \ | |
tar -xzvf 1.075R-it.tar.gz && \ | |
mkdir /usr/share/fonts/truetype/sourcepro-ttf/ && \ | |
cp source-sans-pro-2.020R-ro-1.075R-it/TTF/*.ttf /usr/share/fonts/truetype/sourcepro-ttf/ && \ | |
fc-cache && \ | |
rm 1.075R-it.tar.gz && \ | |
rm -rf source-sans-pro-2.020R-ro-1.075R-it | |
RUN git clone https://github.com/dooman87/openstreetmap-carto.git | |
WORKDIR /openstreetmap-carto | |
ADD shapes/ data/ | |
RUN shapeindex --shape_files \ | |
data/simplified-water-polygons-complete-3857/simplified_water_polygons.shp \ | |
data/water-polygons-split-3857/water_polygons.shp \ | |
data/antarctica-icesheet-polygons-3857/icesheet_polygons.shp \ | |
data/antarctica-icesheet-outlines-3857/icesheet_outlines.shp \ | |
data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp | |
RUN mkdir /map_data | |
VOLUME /map_data | |
RUN mkdir /scripts | |
COPY scripts/compile_style.sh /scripts | |
COPY scripts/run_render.sh /scripts | |
COPY entrypoint.sh / | |
RUN chmod 755 /scripts/*.sh && \ | |
chmod 755 /entrypoint.sh | |
WORKDIR / | |
ENTRYPOINT /entrypoint.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment