I have a Django backend and a M1 macbook. I install packages with poetry. When I get the build there is no problem and it finishes quickly but I get an error.
django.db.utils.OperationalError: SCRAM authentication requires libpq version 10 or above
To solve this error, I add the --platform=linux/amd64 parameter to the Dockerfile. It takes a long time when I build like this.
RUN cd /app && poetry install --no-interaction --no-ansi
this step takes about 3000 seconds.
Do you have any information about the solution?