From 29a780b641c28dd6ad763cad9088017cddb00034 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Fri, 28 Jun 2024 16:13:10 +0200 Subject: [PATCH] test: HS specific Dockerfile --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e43df03..9fd392a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ FROM ubuntu:22.04 ARG PLZ_DATA=Postleitzahlengebiete_-_OSM.geojson -ARG PLZ_HIGHLIGHT=wtf_member_plz_prefixes.json +ARG PLZ_HIGHLIGHT=contacts-zip-anonym.json +ARG IMG_BG_COLOR=#FFFFFF +ARG MAP_BG_COLOR=#4279BC +ARG MAP_ACCENT_COLOR=#DA532C # Set up environment with dependencies RUN apt-get update && apt-get install libblas-dev python3-pip libgeos-dev wget optipng imagemagick -y @@ -14,7 +17,7 @@ COPY $PLZ_HIGHLIGHT ./ # Render map COPY main.py ./ -RUN python3 main.py --plz-data $PLZ_DATA --plz-highlight $PLZ_HIGHLIGHT --out /tmp/map.png +RUN python3 main.py --plz-data $PLZ_DATA --plz-highlight $PLZ_HIGHLIGHT --img-bg-color $IMG_BG_COLOR --map-bg-color $MAP_BG_COLOR --map-accent-color $MAP_ACCENT_COLOR --out /tmp/map.png RUN convert -fuzz 5 -trim /tmp/map.png /tmp/map.png RUN optipng -o7 /tmp/map.png