#!/bin/bash # Install osm2pgsql and required tools # This script runs during PostgreSQL container initialization set -e echo "Installing osm2pgsql and dependencies..." # Update package list apt-get update # Install required packages apt-get install -y \ osm2pgsql \ wget \ curl \ unzip \ ca-certificates \ --no-install-recommends # Clean up to reduce image size apt-get clean rm -rf /var/lib/apt/lists/* echo "osm2pgsql installation completed successfully" # Verify installation osm2pgsql --version