FROM ubuntu:25.04 RUN apt-get update && \ apt-get install -y postgresql-server-dev-all \ python3-dev \ python3-pip \ libgeos-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/ RUN pip3 install --no-cache-dir -r requirements.txt COPY . /app/ RUN chmod +x /app/setup_db.sh CMD ./setup_db.sh && uwsgi --http :8080 --wsgi-file backend.py --callable app