FROM python:3.12-slim RUN pip install --no-cache-dir flask psycopg2-binary COPY app.py . EXPOSE 5000 ENTRYPOINT ["python"] CMD ["app.py"]