From 828eb384f59f92787463d77a203ba5e2a46db14f Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sat, 11 May 2024 01:48:36 +0200 Subject: [PATCH] fixed the prod `tileserver-init-config` being different from development --- docker-compose.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2d6cdb385..dbde60ed4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,13 +27,21 @@ services: tileserver-init-config: image: alpine:latest command: - - /bin/bash + - /bin/sh - -c - | - mkdir -p /data/sprites/ rm -f /data/*.json - rm -f /data/style/* + cp /map/*.json /data/ + + rm -fr /data/sprites/ + mkdir -p /data/sprites/ cp /map/sprites/* /data/sprites/ + + rm -fr /data/styles/ + mkdir -p /data/styles/ + cp /map/styles/* /data/styles/ + + mkdir -p /data/fonts/ volumes: - tileserver-src:/data - ./map/:/map/:ro