full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

pyscopg-binary is not recommended for production workloads

Open billcrook opened this issue 4 years ago • 0 comments

See https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary

I was able to build in 3.8 slim by adding:

  • build-time dependencies:
    • libpq-dev='11.12-0+deb10u1'
    • build-essential='12.6'
  • run-time dependencies:
    • libpq5='11.12-0+deb10u1'

The build-time packages can be removed from the docker image after psycopg2 python package is installed.

billcrook avatar Sep 15 '21 16:09 billcrook