- osm.py: Live-Scanner deaktiviert — /pois liest nur noch aus DB, /analyze ist No-Op. Behebt wiederholte OSM-Banns (Tile-Load + Scanning). - tools/osm-extract: Extraktion (pyosmium) + Loader (schützt user_edited) + Docker-Refresh-Job mit osmium-tags-filter-Vorstufe (RAM-schonend). - docker-compose.osm.yml: Refresh-Service (mem_limit 4g), monatlich via DSM-Aufgabenplaner.
14 lines
468 B
Docker
14 lines
468 B
Docker
FROM python:3.12-slim-bookworm
|
|
|
|
# osmium-tool = RAM-schonende tags-filter-Vorstufe (C++, streaming),
|
|
# pyosmium = Extraktion + Schwerpunktberechnung.
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
osmium-tool curl ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN pip install --no-cache-dir osmium
|
|
|
|
WORKDIR /app
|
|
COPY extract_osm_pois.py load_into_prod.py refresh.sh /app/
|
|
RUN chmod +x /app/refresh.sh
|
|
|
|
ENTRYPOINT ["/app/refresh.sh"]
|