fix: Build psycopg2 from source, pin python minor version
This commit is contained in:
parent
17468097ec
commit
72dedb6b0c
@ -1,10 +1,12 @@
|
|||||||
FROM python:3-slim
|
FROM python:3.11-slim
|
||||||
|
# Use 3.11 to avoid django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 or psycopg module
|
||||||
MAINTAINER Julian-Samuel Gebühr
|
MAINTAINER Julian-Samuel Gebühr
|
||||||
|
|
||||||
ENV DOCKER_BUILD=true
|
ENV DOCKER_BUILD=true
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install gettext -y
|
RUN apt install gettext -y
|
||||||
|
RUN apt install libpq-dev gcc -y
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mkdir /app/data
|
RUN mkdir /app/data
|
||||||
|
@ -35,7 +35,7 @@ dependencies = [
|
|||||||
"markdown",
|
"markdown",
|
||||||
"Pillow",
|
"Pillow",
|
||||||
"django-registration",
|
"django-registration",
|
||||||
"psycopg2-binary",
|
"psycopg2",
|
||||||
"django-crispy-forms",
|
"django-crispy-forms",
|
||||||
"crispy-bootstrap4",
|
"crispy-bootstrap4",
|
||||||
"djangorestframework",
|
"djangorestframework",
|
||||||
|
Loading…
Reference in New Issue
Block a user