Commit 474ddb88 authored by Florent Chehab's avatar Florent Chehab

new setup for fonts

parent 956a81e2
......@@ -2,14 +2,7 @@
FROM floawfloaw/light-world-tileserver:latest
# Add the fonts
RUN apk add --no-cache wget unzip \
&& mkdir -p /data/fonts \
&& wget -O /data/fonts/fonts.zip https://github.com/openmaptiles/fonts/releases/download/v2.0/v2.0.zip \
&& unzip /data/fonts/fonts.zip -d /data/fonts \
&& rm /data/fonts/fonts.zip \
&& ls /data \
&& ls /data/fonts \
&& apk del wget unzip
COPY ./data/fonts /data/fonts
ARG ZOOM
COPY ./data/${ZOOM}.mbtiles /data/planet.mbtiles
......@@ -2,14 +2,18 @@ init_light_folder:
cd tileserver-gl && node publish.js || echo "osef si ça foire"
sed -i "1s/.*/FROM node:10.15.1-alpine/" tileserver-gl/light/Dockerfile
get_fonts:
mkdir -p ./data/fonts
wget -O /tmp/fonts.zip https://github.com/openmaptiles/fonts/releases/download/v2.0/v2.0.zip
unzip /tmp/fonts.zip -d /data/fonts
build_base_image: init_light_folder
cd tileserver-gl/light && docker build --tag floawfloaw/light-world-tileserver:latest .
build_image_8: build_base_image
build_image_8: build_base_image get_fonts
docker build --build-arg ZOOM=8 --tag floawfloaw/light-world-tileserver:latest--zoom-8 .
build_image_11: build_base_image
build_image_11: build_base_image get_fonts
docker build --build-arg ZOOM=11 --tag floawfloaw/light-world-tileserver:latest--zoom-11 .
run:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment