FROM python:3.11-slim WORKDIR /app # Install dependencies directly RUN pip install flask psycopg2-binary #checking flask version RUN python -c "import flask; print(flask.__version__)" #copy app files COPY app.py . COPY index.html . # start app CMD ["python3", "app.py"]